Browse Source

Write a failing spec for user creation

pull/134/head
baarkerlounger 4 years ago committed by Paul Robert Lloyd
parent
commit
8c72258576
  1. 3
      spec/features/organisation_spec.rb

3
spec/features/organisation_spec.rb

@ -34,6 +34,9 @@ RSpec.describe "User Features" do
click_link("Invite user")
expect(page).to have_current_path("/users/new")
expect(page).to have_content("Invite user to submit CORE data")
fill_in("user[name]", with: "New User")
fill_in("user[email]", with: "new_user@example.com")
expect { click_button("Continue") }.to change { ActionMailer::Base.deliveries.count }.by(1)
end
end
end

Loading…
Cancel
Save