and another one..

This commit is contained in:
Espen Antonsen 2010-09-27 15:19:54 +02:00
parent 7314df4782
commit b273696999

View file

@ -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