Add validations for registration_period

This commit is contained in:
Stella Rouzi 2016-02-21 23:38:17 +02:00
parent 68cc4a73d9
commit f567187d45
6 changed files with 122 additions and 32 deletions

View file

@ -27,7 +27,7 @@ describe Admin::RegistrationPeriodsController do
end
it 'changes registration period attributes' do
the_date = 10.days.from_now.to_date
the_date = conference.end_date - 10
patch :update, conference_id: conference.short_title, registration_period:
attributes_for(:registration_period, start_date: the_date)