Use keyword arguments in tests
Raisl 5.1 removes support for non-keyword arguments in `#process`, `#get`, `#post`, `#patch`, `#put`, `#delete`, and `#head` for the `ActionDispatch::IntegrationTest` and `ActionController::TestCase` classes. This means we have to add `params` everywhere in the controller tests.
This commit is contained in:
parent
b8013661a2
commit
d1180e2767
35 changed files with 975 additions and 364 deletions
|
|
@ -14,7 +14,7 @@ describe SurveysController do
|
|||
describe 'GET #index' do
|
||||
context 'guest' do
|
||||
before :each do
|
||||
get :index, conference_id: conference.short_title
|
||||
get :index, params: { conference_id: conference.short_title }
|
||||
end
|
||||
|
||||
it '@sureveys variable is nil' do
|
||||
|
|
@ -25,7 +25,7 @@ describe SurveysController do
|
|||
context 'signed in user' do
|
||||
before :each do
|
||||
sign_in user
|
||||
get :index, conference_id: conference.short_title
|
||||
get :index, params: { conference_id: conference.short_title }
|
||||
end
|
||||
|
||||
it 'assigns @surveys with active surveys' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue