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
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
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
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
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 (