Sha256: 0dc409e46a8260d37b6bbc8ccbe465591e52c531c58c6c9b408a7c933e50d406
Contents?: true
Size: 666 Bytes
Versions: 10
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Shipit class RefreshStatusesJobTest < ActiveSupport::TestCase setup do @stack = shipit_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: shipit_commits(:first).id) end end end
Version data entries
10 entries across 10 versions & 1 rubygems