How do you spec protected controller methods such as before_filters and
helpers that with the params and session hashes?

I cannot call controller.my_method if my_method is protected.

> Try this:
> 
> controller.andreplace("foo and bar").should eql("+foo +bar")

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to