mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add validations for registration_period
This commit is contained in:
parent
68cc4a73d9
commit
f567187d45
6 changed files with 122 additions and 32 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue