Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_contribution_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c591048177163ffad41100d47f3b0dcf90fecb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe UserContributionWorker do
  describe "#perform" do
    it "calls the calculation of user contributions for the given date" do
      worker = described_class.new
      date = 1.day.ago

      expect(UserContribution).to receive(:calculate_for).with(date)
      worker.perform(date)
    end
  end
end