On Aug 17, 9:19 am, Stephen Eley <[email protected]> wrote: > It sounds like you're pretty sure your code is correct and your tests > are broken. Does the application work outside of the RSpec tests? > Can you hit it with, say, 'curl' with the json Accept header and > determine if it does the right thing?
Well, I can say, I trust respond_to method in rails. It actually works outside of RSpec tests. Maybe Rails uses some other objects that needs to be stubbed or mocked. I tried to dig the respond_to method code, but I feel I am going further too much. Chamnap _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
