<commit_before>require 'spec_helper'

feature "Authentication", js: true do
  include UIComponentHelper
  describe "logging into admin" do
    let(:user) { create(:user, password: "password", password_confirmation: "password") }
  end

  scenario "logging into admin redirects home, then back to admin" do
    visit spree.admin_path
    fill_in "Email", with: user.email
    fill_in "Password", with: <PASSWORD>
    click_login_button
    page.should have_content "Dashboard"
    current_path.should == spree.admin_path
  end
end<commit_msg>Fixing a scope issue<commit_after>require 'spec_helper'

feature "Authentication", js: true do
  include UIComponentHelper
  let(:user) { create(:user, password: "password", password_confirmation: "password") }

  scenario "logging into admin redirects home, then back to admin" do
    visit spree.admin_path
    fill_in "Email", with: user.email
    fill_in "Password", with: <PASSWORD>
    click_login_button
    page.should have_content "Dashboard"
    current_path.should == spree.admin_path
  end
end
{'fraction_non_alphanumeric': 0.09177820267686425, 'fraction_numerical': 0.0, 'mean_word_length': 4.629032258064516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5384404', 'n_tokens_mistral': 311, 'n_tokens_neox': 316, 'n_words': 96}