[rspec-devel] [ rspec-Bugs-11181 ] behaviour_type scoping of config.before(:each) is not working

noreply at rubyforge.org noreply at rubyforge.org
Mon May 28 07:35:54 EDT 2007


Bugs item #11181, was opened at 2007-05-28 11:33
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=11181&group_id=797

Category: rails plugin
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: David Chelimsky (dchelimsky)
Summary: behaviour_type scoping of config.before(:each) is not working

Initial Comment:
trunk rev 2051

This causes controller errors to be raised:

describe SomeController do
  raise_controller_errors
  ...
end

This does not (but should):

#in spec_helper:
config.before(:each, :behaviour_type => :controller) do
  raise_controller_errors
end
  

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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-05-28 11:35

Message:
Fixed in r2052.

model, view, controller and helper behaviours were not correctly reporting their behaviour_type

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

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


More information about the rspec-devel mailing list