On Sun, Aug 16, 2009 at 9:01 PM, Chamnap<chamnapchh...@gmail.com> wrote:
> I did the same thing as you did, but it doesn't work.  The respond_to
> method still responses back in "application/xml". Any idea?

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?

If it does, then yes,your tests are broken.  If the application
_itself_ is returning XML, then the tests are working correctly:
they're reporting a failing test condition when your application is
indeed failing. >8->  Fix the code in that case, not the test.



-- 
Have Fun,
   Steve Eley (sfe...@gmail.com)
   ESCAPE POD - The Science Fiction Podcast Magazine
   http://www.escapepod.org
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to