Fix failing spec expectation when using Ruby 3.x #119

Merged
raucao merged 1 commits from fix/ruby-3-failed-expectation into master 2023-04-11 09:32:47 +00:00

View File

@ -53,11 +53,11 @@ RSpec.describe "Signup", type: :feature do
expect(page).to have_content("Choose a password")
expect(CreateAccount).to receive(:call)
.with(
.with({
username: "tony", domain: "kosmos.org",
email: "tony@example.com", password: "a-valid-password",
invitation: Invitation.last
).and_return(true)
}).and_return(true)
fill_in "user_password", with: "a-valid-password"
click_button "Create account"
@ -97,11 +97,11 @@ RSpec.describe "Signup", type: :feature do
expect(page).to have_content("Password is too short")
expect(CreateAccount).to receive(:call)
.with(
.with({
username: "tony", domain: "kosmos.org",
email: "tony@example.com", password: "a-valid-password",
invitation: Invitation.last
).and_return(true)
}).and_return(true)
fill_in "user_password", with: "a-valid-password"
click_button "Create account"