Implements targets and campaigns for conference
This commit is contained in:
parent
678fe38a25
commit
857ac43e74
40 changed files with 1086 additions and 44 deletions
8
spec/factories/campaigns.rb
Normal file
8
spec/factories/campaigns.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :campaign do
|
||||
name 'Test Campaign'
|
||||
utm_campaign 'testcampaign'
|
||||
end
|
||||
end
|
||||
9
spec/factories/targets.rb
Normal file
9
spec/factories/targets.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :target do
|
||||
due_date Date.today + 14
|
||||
target_count 100
|
||||
unit Target.units[:submissions]
|
||||
end
|
||||
end
|
||||
6
spec/factories/visits.rb
Normal file
6
spec/factories/visits.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :visit do
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue