<commit_before>require 'spec_helper'
describe 'devise/mailer/unlock_instructions.html.haml', :type => "view" do
  context "logged in" do
    before(:each) do
#@resource = mock_model(Member)
      @resource = FactoryGirl.create(:member)
      @resource.should_receive(:email).and_return("<EMAIL>")
      @resource.should_receive(:unlock_token).and_return("<PASSWORD>")
      render
    end

    it "should explain what's happened" do
      rendered.should contain "account has been locked"
    end

    it "should have an unlock link" do
      rendered.should contain "Unlock my account"
    end<commit_msg>Fix broken test for unlock instructions<commit_after>require 'spec_helper'
describe 'devise/mailer/unlock_instructions.html.haml', :type => "view" do
  context "logged in" do
    before(:each) do
      @resource = FactoryGirl.create(:member)
      render
    end

    it "should explain what's happened" do
      rendered.should contain "account has been locked"
    end

    it "should have an unlock link" do
      rendered.should contain "Unlock my account"
    end
{'fraction_non_alphanumeric': 0.09962756052141528, 'fraction_numerical': 0.0, 'mean_word_length': 3.6137339055793993, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '8471', 'n_tokens_mistral': 317, 'n_tokens_neox': 306, 'n_words': 94}