Files
growstuff/spec/views/devise/mailer/confirmation_instructions_spec.rb
Daniel O'Connor f1acb35520 Merge pull request #4537 from Growstuff/FactoryBot/SyntaxMethods
Rubocop: FactoryBot/SyntaxMethods
2026-04-23 22:29:24 +09:30

21 lines
430 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
rendered.should have_content 'Confirm my account'
end
it 'has a link to the homepage' do
rendered.should have_content root_url
end
end
end