Sha256: eaeace7e6069cce1ddb35a410fbcfa5e0d7b771fe326d1cf7520d59d04a2939a
Contents?: true
Size: 576 Bytes
Versions: 22
Compression:
Stored size: 576 Bytes
Contents
require 'test_helper' class RefreshStatusesJobTest < ActiveSupport::TestCase setup do @stack = stacks(:shipit) @job = RefreshStatusesJob.new end test "#perform call #refresh_statuses! on the last 30 commits of the stack" do Commit.any_instance.expects(:refresh_statuses!).times(@stack.commits.count) @job.perform(stack_id: @stack.id) end test "if :commit_id param is present only this commit is refreshed" do Commit.any_instance.expects(:refresh_statuses!).once @job.perform(stack_id: @stack.id, commit_id: commits(:first).id) end end
Version data entries
22 entries across 22 versions & 1 rubygems