<commit_before>require 'spec_helper'

describe 'layouts/application' do
  context 'not signed in' do
    before do
      template.stub!(:user_signed_in? => false)
    end
    it 'does not have a sign out link' do
      render
      rendered.should_not include('sign out')
    end

    it 'has a sign in link' do
      render
      rendered.should include('sign in')
    end
  end

  context 'signed in' do
    before do
      template.stub!(:user_signed_in? => true)
    end
    it 'has a sign out link' do
      render
      rendered.should include('sign out')
    end

    it 'does not have a sign in link' do
      render
      rendered.should_not include('sign in')
    end
  end
end<commit_msg>Fixed RSpec deprecation warnings.<commit_after>require 'spec_helper'

describe 'layouts/application' do
  context 'not signed in' do
    before do
      view.stub!(:user_signed_in? => false)
    end
    it 'does not have a sign out link' do
      render
      rendered.should_not include('sign out')
    end

    it 'has a sign in link' do
      render
      rendered.should include('sign in')
    end
  end

  context 'signed in' do
    before do
      view.stub!(:user_signed_in? => true)
    end
    it 'has a sign out link' do
      render
      rendered.should include('sign out')
    end

    it 'does not have a sign in link' do
      render
      rendered.should_not include('sign in')
    end
  end
end
{'fraction_non_alphanumeric': 0.08014184397163121, 'fraction_numerical': 0.0, 'mean_word_length': 2.367541766109785, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6432478', 'n_tokens_mistral': 437, 'n_tokens_neox': 431, 'n_words': 160}