Sha256: f77b0284df8f5b8e27356649217894426b3a4e1a2e8092663848184cf4d63d25

Contents?: true

Size: 776 Bytes

Versions: 5

Compression:

Stored size: 776 Bytes

Contents

Given /^I am logged in as "([^\"]*)"$/ do |login|
  email = "#{login}@#{login}.com"
  user = User.create(:login => login, :email => email, :password => "password", :password_confirmation => "password")
#  visit user_sessions_path(:user_session => {:login => login, :password => "password"}), :post
#  User.find(user.id).should_not be_nil
  visit new_user_session_path
  fill_in("user_email", :with => email) 
  fill_in("user_password", :with => "password") 
  click_button("user_submit")
#  response.body.should =~ /Logged/m  
  Then 'I should see "Log Out"'
end

Given /^"([^\"]*)" has saved a search with term "([^\"]*)"$/ do |user, term|
  user = User.find_by_email("#{user}@#{user}.com")
  user.searches << Search.create(:query_params => {:q => term})
  user.save!
end



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-3.0.0pre6 test_support/features/step_definitions/saved_searches_steps.rb
blacklight-3.0.0pre4 test_support/features/step_definitions/saved_searches_steps.rb
blacklight-3.0.0pre3 test_support/features/step_definitions/saved_searches_steps.rb
blacklight-3.0pre2 test_support/features/step_definitions/saved_searches_steps.rb
blacklight-3.0pre1 test_app/features/step_definitions/saved_searches_steps.rb