# frozen_string_literal: true

require 'rails_helper'
describe 'devise/mailer/unlock_instructions.html.haml', type: "view" do
  context "logged in" do
    before do
      @resource = create(:member)
      render
    end

    it "explains what's happened" do
      expect(rendered).to have_content "account has been locked"
    end

    it "has an unlock link" do
      expect(rendered).to have_content "Unlock my account"
    end
  end
end
