Displaying 1 result from an estimated 1 matches for "valid_dealer_credentials".
2008 Jan 16
1
session data and user stories
...o
Given("I have opened a session") do
@session = open_session
end
Given("I am not logged in") do
@session.instance_variable_get("@session").should == nil
end
Given("I have a valid login/password combo") do
@login_with = valid_dealer_credentials
end
When("I submit my login/ password") do
@session.post("/gateway", :user=> @login_with)
end
#there has to be a better way to address this
Then("I should be authenticated") do
@session.response.session.data.should == {:id => 1, &quo...