mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
12 lines
200 B
Ruby
12 lines
200 B
Ruby
|
require 'spec_helper'
|
||
|
require 'jobs'
|
||
|
|
||
|
describe Jobs::CalculateViewCounts do
|
||
|
|
||
|
|
||
|
it "delegates to User" do
|
||
|
User.expects(:update_view_counts)
|
||
|
Jobs::CalculateViewCounts.new.execute({})
|
||
|
end
|
||
|
|
||
|
end
|