Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit 115da58

Browse files
committed
Change to Rails 5.1 required params
1 parent 75ab4ef commit 115da58

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec/controllers/griddler/emails_controller_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
describe 'POST create', type: :controller do
1111
it 'is successful' do
12-
post :create, email_params
12+
post :create, params: email_params
1313

1414
expect(response).to be_success
1515
end
@@ -20,15 +20,15 @@
2020
with(hash_including(to: ['[email protected]'])).
2121
and_return(email)
2222

23-
post :create, { to: '[email protected]' }
23+
post :create, params: { to: '[email protected]' }
2424
end
2525

2626
it 'calls process on the custom processor class' do
2727
my_handler = double(process: nil)
2828
expect(my_handler).to receive(:new).and_return(my_handler)
2929
allow(Griddler.configuration).to receive_messages(processor_class: my_handler)
3030

31-
post :create, email_params
31+
post :create, params: email_params
3232
end
3333

3434
it 'calls the custom processor method on the processor class' do
@@ -38,7 +38,7 @@
3838
expect(EmailProcessor).to receive(:new).and_return(fake_processor)
3939
expect(fake_processor).to receive(:perform)
4040

41-
post :create, email_params
41+
post :create, params: email_params
4242
end
4343
end
4444

0 commit comments

Comments
 (0)