Sha256: 614e76b431b91941165cd00fb39403b676da583b36bf95fcbf6506e72a7c339b
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
require "spec_helper" RSpec.feature "User signup" do before do ActionMailer::Base.deliveries = [] sign_up_user click_button "Not received an email?" end scenario "sends an email with the pin" do expect(ActionMailer::Base.deliveries.count).to eq(2) end def sign_up_user visit new_user_registration_path fill_in "user_email", with: "test@example.com" fill_in "user_password", with: "password" fill_in "user_password_confirmation", with: "password" click_button "Sign up" end end
Version data entries
6 entries across 6 versions & 1 rubygems