search for: xx_controller_spec

Displaying 1 result from an estimated 1 matches for "xx_controller_spec".

Did you mean: _controller_spec
2007 Feb 15
4
defining context(s) dynamically
...br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assigns(sym).should_equal @mock<br> &nbsp;&nbsp;&nbsp; end<br> &nbsp; end<br> end<br> <br> restful_edit_specs(:assessments)<br> <br> </tt>This all works fine when defined in the xx_controller_spec.rb file.<br> <br> But if I move the exact same code to a helper file and require it, spec gets confused:<br> <br> <tt>.../rspec-0.7.5.1/lib/spec/expectations/sugar.rb:13:in `call'': undefined method `controller_name'' for #<Spec::Runner::ContextEvalM...