method added to autocycle through sponsors based on sponsor level and code added to inherit twitter env variables

This commit is contained in:
AnithaPal 2016-08-01 15:44:01 -04:00
parent 881518f1f3
commit e8d3177ec1
14 changed files with 89 additions and 163 deletions

View file

@ -33,6 +33,19 @@ FactoryGirl.define do
event.event_schedules << build(:event_schedule, event: event)
end
end
factory :past_event do
after(:build) do |event|
event.start_time = (DateTime.current - 2.days).to_s
event.state = 'confirmed'
end
end
factory :future_event do
after(:build) do |event|
event.start_time = (DateTime.current + 2.days).to_s
event.state = 'confirmed'
end
end
end
end
end