mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Improve Error messages
- Improve error messages in event schedules, schedules and program controller. - Two respond_to blocks in the update method of program controller.
This commit is contained in:
parent
c687c1072e
commit
e8261d41bc
4 changed files with 13 additions and 11 deletions
|
|
@ -62,7 +62,7 @@ describe Admin::EventSchedulesController do
|
|||
room_id: nil,
|
||||
start_time: nil)
|
||||
|
||||
expect(JSON.parse(response.body)['status']).to_not eq('ok')
|
||||
expect(JSON.parse(response.body)['status']).to eq("The event couldn't be scheduled. Event can't be blank. Room can't be blank. Start time can't be blank")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -119,7 +119,7 @@ describe Admin::EventSchedulesController do
|
|||
room_id: nil,
|
||||
start_time: nil)
|
||||
|
||||
expect(JSON.parse(response.body)['status']).to_not eq('ok')
|
||||
expect(JSON.parse(response.body)['status']).to eq("The event couldn't be scheduled. Event can't be blank. Room can't be blank. Start time can't be blank")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue