Fix failing spec expectation when using Ruby 3.x
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Update release notes draft

This commit is contained in:
galfert 2023-04-10 23:03:59 +02:00
parent ef2d2b6422
commit 9e74c89a80
Signed by: galfert
GPG Key ID: EED8863A3A607B8D

View File

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