<commit_before># encoding: UTF-8

require 'spec_helper'

describe 'Styleguide home' do

  before do
    visit '/styleguide'
  end

  it 'is loaded' do
    expect(current_path).to eq '/styleguide'
  end
end
<commit_msg>Add resizing specs<commit_after># encoding: UTF-8

require 'spec_helper'

describe 'Styleguide' do

  before do
    visit '/styleguide'
  end

  it 'is loaded' do
    expect(current_path).to eq '/styleguide'
  end

  it 'has a width menu' do
    expect(page).to have_content('Width')
  end

  it 'resizes to 320px width' do
    expect(page).to have_content('320')
  end

  it 'resizes to 480px width' do
    expect(page).to have_content('480')
  end

  it 'resizes to 748px width' do
    expect(page).to have_content('748')
  end

  it 'resizes to 960px width' do
    expect(page).to have_content('960')
  end
  it 'resizes to 1024px width' do
    expect(page).to have_content('1024')
  end
  it 'resizes to 1280px width' do
    expect(page).to have_content('1280')
  end
  it 'resizes to iPhone resolution' do
    expect(page).to have_content('iPhone')
  end
  it 'resizes to Full Screen width' do
    expect(page).to have_content('Full')
  end
end

{'fraction_non_alphanumeric': 0.1053082191780822, 'fraction_numerical': 0.03595890410958904, 'mean_word_length': 3.428030303030303, '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': '6697410', 'n_tokens_mistral': 453, 'n_tokens_neox': 414, 'n_words': 129}