Class: Bbq::TestUser
- Inherits:
-
Object
- Object
- Bbq::TestUser
- Includes:
- RSpecMatchers, Roles, CapybaraDsl, Eyes, Within, Capybara::RSpecMatchers, RSpec::Matchers, Test::Unit::Assertions
- Defined in:
- lib/bbq/test_unit.rb,
lib/bbq/rspec.rb,
lib/bbq/test_user.rb,
lib/bbq/test_user/eyes.rb,
lib/bbq/test_user/within.rb,
lib/bbq/test_user/capybara_dsl.rb
Overview
test/unit specific methods for test_user
Direct Known Subclasses
Defined Under Namespace
Modules: CapybaraDsl, Eyes, Within
Constant Summary
Constants included from Within
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #default_options ⇒ Object
-
#initialize(options = {}) ⇒ TestUser
constructor
A new instance of TestUser.
- #not_see!(*args) ⇒ Object
- #page ⇒ Object
- #see!(*args) ⇒ Object
Methods included from Roles
Methods included from Within
Methods included from Eyes
Constructor Details
#initialize(options = {}) ⇒ TestUser
Returns a new instance of TestUser.
18 19 20 |
# File 'lib/bbq/test_user.rb', line 18 def initialize( = {}) @options = .merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
16 17 18 |
# File 'lib/bbq/test_user.rb', line 16 def @options end |
Instance Method Details
#default_options ⇒ Object
22 23 24 25 26 27 |
# File 'lib/bbq/test_user.rb', line 22 def { :pool => Bbq::Session.pool, :driver => ::Capybara.default_driver } end |
#not_see!(*args) ⇒ Object
73 74 75 |
# File 'lib/bbq/rspec.rb', line 73 def not_see!(*args) not_see?(*args).should be_true end |
#page ⇒ Object
29 30 31 |
# File 'lib/bbq/test_user.rb', line 29 def page @page ||= [:session] || Bbq::Session.next(:driver => [:driver], :pool => [:pool]) end |
#see!(*args) ⇒ Object
69 70 71 |
# File 'lib/bbq/rspec.rb', line 69 def see!(*args) see?(*args).should be_true end |