Displaying 1 result from an estimated 1 matches for "should_behave_lik".
Did you mean:
should_behave_like
2007 Jun 27
2
Controller specs not shareable?
...I just wondered if there was a reason why Rails controller specs are
not shareable? eg
describe "All XHR POSTs to /gap/calculate_quote", :shared => true do
controller_name :gap
# ...
end
describe "XHR POST /gap/calculate_quote with valid details" do
it_should_behave_like "All XHR POSTs to /gap/calculate_quote"
# ...
end
blows up with the following error:
##########
/Users/ashleymoran/Documents/Development/YourMoney/trunk/src/vendor/
plugins/rspec/lib/spec/dsl/behaviour_eval.rb:137:in `method_missing'':
undefined method `controller_name...