[rspec-users] Spec'ing Inherited Resource Controllers

2009-12-23 Thread Juanma Cervera
Hello, I am trying to write the specs for controllers that use InheritedResource. Can somebody tell me if this is possible? I have read that I have to use integrated_views, but even in that case it doesn't work. I have posted a message in the InheritedResources group and Jose Valim, has answered,

[rspec-users] be_true and be_false are suddenly undefined

2009-12-23 Thread Doug
after upgrading cucumber to 5.1 be_true and be_false are undefined switching to == true or == false works. ??? thanks. Then there is an invalid item with 1 "upc" error # features/step_definitions/extract_steps.rb: 56 undefined method `be_true' for # (NoMethodError)

Re: [rspec-users] no should raise_exception

2009-12-23 Thread Pat Maddox
On Dec 22, 2009, at 2:08 PM, David Chelimsky wrote: > On Tue, Dec 22, 2009 at 9:33 AM, rogerdpack wrote: > > raise_error already catches any type of exception, error or not: > > > > class BlahException < Exception; end > > class BlahError < StandardError; end > > > > lambda { raise BlahExce

Re: [rspec-users] spec with user culture

2009-12-23 Thread Gnagno Gnagno
I solved the question concerning cucumber, I will post here the solution in case someone else will need it: in my step definitions I just put: Given /^my culture is (.+)$/ do |culture| header "HTTP_ACCEPT_LANGUAGE", "it-IT" if culture == 'italian' header "HTTP_ACCEPT_LANGUAGE", "en-GB" if cu

Re: [rspec-users] spec with user culture

2009-12-23 Thread Matt Wynne
On 23 Dec 2009, at 10:07, Gnagno Gnagno wrote: Sorry, I have one more question, I didn't find the cucumber forum, so please forgive me if I am too much out of topic here. http://wiki.github.com/aslakhellesoy/cucumber/get-in-touch I was trying to achieve the same with cucumber, so I wrot

Re: [rspec-users] spec with user culture

2009-12-23 Thread Gnagno Gnagno
Sorry, I have one more question, I didn't find the cucumber forum, so please forgive me if I am too much out of topic here. I was trying to achieve the same with cucumber, so I wrote this: Scenario Outline: visit home page and get redirect to localized home page Given my culture is When I

Re: [rspec-users] spec with user culture

2009-12-23 Thread Gnagno Gnagno
Thank you very much :) I didn't know I could access request.env['HTTP_ACCEPT_LANGUAGE'] in writing, and didn't even try it -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/lis