Skip to content

Instantly share code, notes, and snippets.

@ecomba
Last active December 15, 2015 19:49
Show Gist options
  • Save ecomba/5314085 to your computer and use it in GitHub Desktop.
Save ecomba/5314085 to your computer and use it in GitHub Desktop.
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