and another one..

This commit is contained in:
Espen Antonsen 2010-09-27 15:20:53 +02:00
parent e3ad068f40
commit 5bdbd2558c

View file

@ -1,12 +1,12 @@
Given /i am logged in as a user in the (.*) role/i do |role|
#@user = Factory.create(:user, :name => "Espen Antonsen",
# :email => "espen@inspired.no",
# :password => "megmeg")
# :email => "balder@balderapp.com",
# :password => "balder")
#@role = Factory.create(:role, :rolename => role)
#@user.roles << @role
visits "/login"
fills_in("email", :with => "espen@inspired.no")
fills_in("password", :with => "megmeg")
fills_in("email", :with => "balder@balderapp.com")
fills_in("password", :with => "balder")
clicks_button("Log in")
end