Class: Kameleon::User::Base
- Defined in:
- lib/kameleon/user/base.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Attributes inherited from Abstract
Attributes included from Session::Capybara
Instance Method Summary collapse
-
#initialize(rspec_world, options = {}, &block) ⇒ Base
constructor
A new instance of Base.
- #login ⇒ Object
Methods inherited from Abstract
#debug, #page_areas, #page_element, #page_elements, #visit, #will, #within
Methods included from Dsl::Act
Methods included from Dsl::See
Methods included from Session::Capybara
Constructor Details
#initialize(rspec_world, options = {}, &block) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/kameleon/user/base.rb', line 7 def initialize(rspec_world, ={}, &block) super do login end instance_eval(&block) if block_given? end |
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/kameleon/user/base.rb', line 5 def user @user end |
Instance Method Details
#login ⇒ Object
14 15 16 17 18 19 |
# File 'lib/kameleon/user/base.rb', line 14 def login visit user_login_path fill_in user_login => 'Email', user_password => 'Password' click 'Login' end |