Last active
December 15, 2015 19:49
-
-
Save ecomba/5314085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Cucumber | |
module Impersonators | |
class BankManager | |
def initialize(world) | |
@world = world | |
end | |
def method_missing(method, *args, &block) | |
@world.send(method, *args, &block) | |
end | |
def login | |
visit '/login' | |
fill_in 'username', with: 'me' | |
fill_in 'password', with: 's3cr3t' | |
click_on 'Login' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment