[rspec-devel] [ rspec-Feature Requests-10774 ] Allow before and after to be specified in config II

noreply at rubyforge.org noreply at rubyforge.org
Fri May 11 08:30:33 EDT 2007


Feature Requests item #10774, was opened at 2007-05-11 08:30
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=10774&group_id=797

Category: runner module
Group: None
Status: Open
Priority: 3
Submitted By: Aslak Hellesøy (aslak_hellesoy)
Assigned to: Nobody (None)
Summary: Allow before and after to be specified in config II

Initial Comment:
This issue is about the before/after part only of:
http://rubyforge.org/tracker/index.php?func=detail&aid=10770&group_id=797&atid=3152

Spec::Runner.configure do |config|
  config.before(:all) do
    # This will run for all Behaviours
  end

  config.before(:all, :behaviour_type => 'watir') do
    # This will only run for Watir behaviours
    @browser = Watir::Browser.new
  end
end

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=10774&group_id=797


More information about the rspec-devel mailing list