<commit_before>require 'rails_helper'

describe 'layouts/admin.html.slim' do
  let(:website) { FactoryGirl.create(:website) }

  before do
    allow(view).to receive(:website).and_return(website)
  end

  it 'has a link to sign out' do
    render
    expect(rendered).to have_selector "a[href='#{sessions_path}']"
  end

  it 'has a link to forums' do
    render
    expect(rendered).to have_slector "a[href='#{forums_path}]"
  end
end<commit_msg>Fix typos in spec<commit_after>require 'rails_helper'

describe 'layouts/admin.html.slim' do
  let(:website) { FactoryGirl.create(:website) }

  before do
    allow(view).to receive(:website).and_return(website)
  end

  it 'has a link to sign out' do
    render
    expect(rendered).to have_selector "a[href='#{sessions_path}']"
  end

  it 'has a link to forums' do
    render
    expect(rendered).to have_selector "a[href='#{forums_path}']"
  end
end
{'fraction_non_alphanumeric': 0.12777777777777777, 'fraction_numerical': 0.0, 'mean_word_length': 4.17816091954023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5515113', 'n_tokens_mistral': 333, 'n_tokens_neox': 311, 'n_words': 78}