and another one..
This commit is contained in:
parent
7314df4782
commit
b273696999
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
Given /i am logged in as a user in the (.*) role/i do |role|
|
Given /i am logged in as a user in the (.*) role/i do |role|
|
||||||
#@user = Factory.create(:user, :name => "Espen Antonsen",
|
#@user = Factory.create(:user, :name => "Espen Antonsen",
|
||||||
# :email => "espen@inspired.no",
|
# :email => "balder@balderapp.com",
|
||||||
# :password => "megmeg")
|
# :password => "balder")
|
||||||
#@role = Factory.create(:role, :rolename => role)
|
#@role = Factory.create(:role, :rolename => role)
|
||||||
#@user.roles << @role
|
#@user.roles << @role
|
||||||
visits "/login"
|
visits "/login"
|
||||||
fills_in("email", :with => "espen@inspired.no")
|
fills_in("email", :with => "balder@balderapp.com")
|
||||||
fills_in("password", :with => "megmeg")
|
fills_in("password", :with => "balder")
|
||||||
clicks_button("Log in")
|
clicks_button("Log in")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue