Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f320762bb3
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.455 kB
Given /^I am logged in as admin$/ do
Factory(:admin)
visit login_path
fill_in "user_login", :with => "admin"
fill_in "user_password", :with => "secret"
click_button "user_submit"
end
Given /^I am not logged in$/ do
visit destroy_user_session_path
end
Given /^there is a user with login "([^\"]*)" and password "([^\"]*)"$/ do |login, password|
Factory(:user, :login => login, :password => password, :password_confirmation => password)
end
Jump to Line
Something went wrong with that request. Please try again.