<commit_before>require 'spec_helper'
include Warden::Test::Helpers
Warden.test_mode!

# Feature: User index page
#   As a user
#   I want to see a list of users
#   So I can confirm the site has multiple users
feature 'User index page' do

  # Scenario: User listed on index page
  #   Given I am logged in
  #   When I visit the user index page
  #   Then I see my own email address
  scenario 'user sees own email address' do
    user = FactoryGirl.create(:user)
    login_as(user, scope: :user)
    visit users_path
    expect(page).to have_content user.email
  end

end<commit_msg>minor tweak to a user story<commit_after>require 'spec_helper'
include Warden::Test::Helpers
Warden.test_mode!

# Feature: User index page
#   As a user
#   I want to see a list of users
#   So I can see who has registered
feature 'User index page' do

  # Scenario: User listed on index page
  #   Given I am logged in
  #   When I visit the user index page
  #   Then I see my own email address
  scenario 'user sees own email address' do
    user = FactoryGirl.create(:user)
    login_as(user, scope: :user)
    visit users_path
    expect(page).to have_content user.email
  end

end
{'fraction_non_alphanumeric': 0.06660973526900085, 'fraction_numerical': 0.0, 'mean_word_length': 3.3407407407407406, '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': '2372834', 'n_tokens_mistral': 364, 'n_tokens_neox': 361, 'n_words': 158}