Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Moved petition report populator out to its own class; the worker whic…
Browse files Browse the repository at this point in the history
…h runs it is an independent file. Fixes #31.
  • Loading branch information
bguthrie committed Jul 24, 2013
1 parent f846b83 commit a94f756
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Expand Up @@ -111,5 +111,3 @@ def update_rate_query(rate_column)
end
end
end

PetitionReportsPopulator.populate
@@ -1,5 +1,3 @@
require Rails.root.join("worker/petition_reports_populator.rb")

describe PetitionReportsPopulator do
let(:petition) { create(:petition) }

Expand All @@ -21,4 +19,4 @@
its(:unsubscribes_rate_day) { should eq 0.2 }
its(:hit_count_day) { should eq 3 }
its(:hit_rate_day) { should eq 0.6 }
end
end
1 change: 1 addition & 0 deletions worker/populate_petition_reports.rb
@@ -0,0 +1 @@
PetitionReportsPopulator.populate

0 comments on commit a94f756

Please sign in to comment.