Displaying 2 results from an estimated 2 matches for "shared_behaviour".
2007 May 24
25
Specs for ApplicationController, where to put them?
The Rails ApplicationController (app/controllers/application.rb)
serves as an abstract superclass for all other controllers in a Rails
application and is a good place to put methods and filters which you
want all of your controllers to use. In my case I''m using it to
provide methods such as "current_user" and "logged_in?" etc.
By default, RSpec
2007 Sep 14
0
using #include in shared behaviours
Hi folks,
Is there any way I can call #include from within a shared behaviour
without it blowing up?:
> vendor/plugins/rspec/lib/spec/dsl/shared_behaviour.rb:48:in
> `included'': private method `include'' called for #<Class:0x3047484>
> (NoMethodError)
More detail: I have a spec/concerns directory which contains specs
corresponding to mixins in app/concerns (cf Jamis Buck), so each spec/
concerns/*_spec.rb really j...