[rspec-devel] [ rspec-Bugs-11903 ] config.include with behaviour_type 'hash' does not work

noreply at rubyforge.org noreply at rubyforge.org
Thu Jun 28 05:39:26 EDT 2007


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

Category: runner module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jochen Kramer (freetwix)
Assigned to: Nobody (None)
Summary: config.include with behaviour_type 'hash' does not work

Initial Comment:
module My
  module ViewSpecHelper
    def dude_me
    end
  end
end
Spec::Runner.configure do |config|
  config.include(My::ViewSpecHelper, :behaviour_type => :view)
end

throws an Exception:
rspec/lib/spec/dsl/behaviour.rb:151:in `include': wrong argument type Hash (expected Module) (TypeError) from ...



Reproduce this bug by copying the above code snippet into the spec_helper.
Thanks for providing RSpec, though.
Jochen and Thorsten

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

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


More information about the rspec-devel mailing list