Re: [rspec-users] Controller specs and default_url_options

2012-11-12 Thread Joshua Muheim
Thanks for these very useful informations. I found the titinux' first post to solve my problems with request specs, and martin_c94's post to solve my controller specs problems. Still, in the console, the url helpers need the locale explicitly set, it seems: [1] pry(main)> app.user_path User.fi

Re: [rspec-users] Controller specs and default_url_options

2012-01-19 Thread Martin C.
Hi Jeremie, I'm also using Rails 3.1.3 and rspec-rails 2.8.1 and I was in the same situation as you: neither the rspec issue #255 or the proposed solutions in this email thread solved my problems. But now I have something working for me (and hopefully it will work for you too). As I recently post

Re: [rspec-users] Controller specs and default_url_options

2012-01-17 Thread Titinux
Hi, I used your code but it does not work either. To eliminate the possibility of a problem coming from my application I made a new Rails 3.1.3 app from scratch and scaffold Category stuff. And the result is that view specs start working with either issue #255 solution or yours but controller, r

Re: [rspec-users] Controller specs and default_url_options

2012-01-16 Thread David Chelimsky
On Jan 16, 2012, at 5:17 PM, Titinux wrote: > Hello, > > I'm using Rails 3.1.3 with rspec-rails 2.8.1. I have a scope ':locale' > in routes.rb and I want to run controller and routing > specs. I'm aware of the problem with setting default_url_options in > application.rb controller so I apply the

[rspec-users] Controller specs and default_url_options

2012-01-16 Thread Titinux
Hello, I'm using Rails 3.1.3 with rspec-rails 2.8.1. I have a scope ':locale' in routes.rb and I want to run controller and routing specs. I'm aware of the problem with setting default_url_options in application.rb controller so I apply the solution found in the last comment on rspec issue #255 (