Files
growstuff/spec/views/devise/mailer/confirmation_instructions_spec.rb
T

21 lines
438 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe 'devise/mailer/confirmation_instructions.html.haml', type: "view" do
context "logged in" do
before do
@resource = create(:member)
render
end
it 'has a confirmation link' do
expect(rendered).to have_content 'Confirm my account'
end
it 'has a link to the homepage' do
expect(rendered).to have_content root_url
end
end
end