Class: Kameleon::User::Base

Inherits:
Abstract show all
Defined in:
lib/kameleon/user/base.rb

Instance Attribute Summary collapse

Attributes inherited from Abstract

#options, #rspec_world

Attributes included from Session::Capybara

#driver_name

Instance Method Summary collapse

Methods inherited from Abstract

#debug, #page_areas, #page_element, #page_elements, #visit, #will, #within

Methods included from Dsl::Act

#click, #fill_in

Methods included from Dsl::See

#not_see, #see

Methods included from Session::Capybara

#refresh_page, #set_session

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, options={}, &block)
  super do
    
  end
  instance_eval(&block) if block_given?
end

Instance Attribute Details

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/kameleon/user/base.rb', line 5

def user
  @user
end

Instance Method Details

#loginObject



14
15
16
17
18
19
# File 'lib/kameleon/user/base.rb', line 14

def 
  visit 
  fill_in  => 'Email',
          user_password => 'Password'
  click 'Login'
end