Sha256: 4053384d0581b7568e27ef6d7ebbed85b7c248f82edd3b20d21bd778474c3df4

Contents?: true

Size: 376 Bytes

Versions: 10

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

module Shipit
  class FetchCommitStatsJobTest < ActiveSupport::TestCase
    setup do
      @commit = shipit_commits(:first)
      @job = FetchCommitStatsJob.new
    end

    test "#perform call #fetch_stats! on the provided commit" do
      @commit.expects(:fetch_stats!).once
      @job.perform(@commit)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.38.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.37.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.36.1 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.36.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.35.1 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.35.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.34.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.33.0 test/jobs/fetch_commit_stats_job_test.rb
shipit-engine-0.32.0 test/jobs/fetch_commit_stats_job_test.rb