Re: [rspec-users] RSpec 2, Rails 3, and SSL routes

2013-06-04 Thread Aashish Kiran
I too came across same situation (i.e., testing ssl request in rails with specs). Thinking there should be a solution. Thanks, Aashish -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] RSpec 2, Rails 3, and SSL routes

2010-12-13 Thread Brian Ploetz
Anybody? On Dec 9, 3:22 pm, Brian Ploetz bplo...@gmail.com wrote: Hi all, This is probably a stupid question, but I can't figure out how to do this. If I have some routes which require SSL, how do I test that with RSpec? For example: # routes.rb scope :constraints = { :protocol =

Re: [rspec-users] RSpec 2, Rails 3, and SSL routes

2010-12-13 Thread David Chelimsky
On Dec 13, 2010, at 7:55 AM, Brian Ploetz wrote: Anybody? On Dec 9, 3:22 pm, Brian Ploetz bplo...@gmail.com wrote: Hi all, This is probably a stupid question, but I can't figure out how to do this. If I have some routes which require SSL, how do I test that with RSpec? For

Re: [rspec-users] RSpec 2, Rails 3, and SSL routes

2010-12-13 Thread Brian Ploetz
OK, cool. I'll avoid banging my head against the wall in the mean time. :-) Thanks alot David. BP On Dec 13, 9:16 am, David Chelimsky dchelim...@gmail.com wrote: On Dec 13, 2010, at 7:55 AM, Brian Ploetz wrote: Anybody? On Dec 9, 3:22 pm, Brian Ploetz bplo...@gmail.com wrote: Hi all,

Re: [rspec-users] RSpec 2, Rails 3, and SSL routes

2010-12-13 Thread Brian Ploetz
Actually, Rails seems to correctly support *some* routing constraints in tests (:format being one), but not others (:protocol being one). I'm coming up with a failing test which I'll attach to that Rails ticket, but just noting it here as an FYI to others... On Dec 13, 9:43 am, Brian Ploetz