Class: Spec::Ui::Watir::WatirBehaviour

Inherits:
DSL::Behaviour
  • Object
show all
Defined in:
lib/spec/ui/watir/watir_behaviour.rb

Instance Method Summary collapse

Instance Method Details

#before_evalObject

:nodoc:



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/spec/ui/watir/watir_behaviour.rb', line 7

def before_eval # :nodoc:
  include Spec::Matchers::Watir
  begin
    # We'll try to hook up to the Rails stuff. This gives us access
    # to transactional fixtures etc.
    inherit Spec::Rails::DSL::EvalContext
    prepend_before {setup}
    append_after {teardown}
    configure
  rescue
  end
end