Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
added home page mixin method
Browse files Browse the repository at this point in the history
  • Loading branch information
markryall committed Nov 18, 2012
1 parent c2d90d4 commit b70c352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions features/pages/home_page.rb
@@ -1,2 +1,5 @@
module HomePage
def login_as person
visit "/teams?auth_token=#{person.auth_token}"
end
end
2 changes: 1 addition & 1 deletion features/step_definitions/main_process.rb
Expand Up @@ -3,7 +3,7 @@
end

When /^I login$/ do
visit "/teams?auth_token=#{@person.auth_token}"
on(HomePage).login_as @person
end

Then /^I see list of teams$/ do
Expand Down

0 comments on commit b70c352

Please sign in to comment.