Skip to content

Commit

Permalink
Fix keyword usage for Ruby 3.x support on specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Tapia committed Jul 26, 2022
1 parent 512fc62 commit 966495a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/spree/user_registrations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
let(:password_confirmation) { 'foobar123' }

subject do
post(:create, {
post(:create,
params: {
spree_user: {
email: '[email protected]',
password: 'foobar123',
password_confirmation: password_confirmation
}
}
})
)
end

context 'when user created successfuly' do
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/spree/user_sessions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
let(:password) { 'secret' }

subject do
post(:create, {
post(:create,
params: {
spree_user: {
email: user.email,
password: password
},
format: format
}
})
)
end

context "when using correct login information" do
Expand Down

0 comments on commit 966495a

Please sign in to comment.