On 24 May 2011 04:26, satyamag <satya...@gmail.com> wrote: > > Hi > > I am new to rails and rspec. I am trying to write specs for a web service > written in rails and found that firefox 3.6 makes an OPTIONS call to the > server before making a POST. > > I want to write a spec for this behavior but am unable to find any resource > on how to write a spec for an OPTIONS call. Could someone please help? I > would really appreciate it. > > I am working on rails 3 with ruby 1.9.2 and rspec 2.5.2 > > thank you >
Do you really need to do this? From my cursory look of the w3 spec http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html, the options command is all about establishing comms with your server - not your service. So there is nothing to specify in your service is there! Your not writing specs for apache, nginx or whatever you have serving your application. HTH, and if I'm wrong please let me know All best Andrew > -- > View this message in context: > http://old.nabble.com/Writing-a-spec-for-HTTP-OPTIONS-verb-tp31687138p31687138.html > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- ------------------------ Andrew Premdas blog.andrew.premdas.org
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users