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

noreply at rubyforge.org noreply at rubyforge.org
Sun May 13 18:42:48 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: Closed
Priority: 3
Submitted By: Aslak Hellesøy (aslak_hellesoy)
>Assigned to: Aslak Hellesøy (aslak_hellesoy)
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

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

>Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-05-13 18:42

Message:
Fixed in r1951

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

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