Re: [rspec-users] Cookie value set in spec, but controller can't read it

2011-01-10 Thread Marko Anastasov
On Mon, Jan 10, 2011 at 05:05, David Chelimsky wrote: On Jan 5, 2011, at 11:54 AM, Marko Anastasov wrote: Hello, I set a value in controller spec using @request.cookies: https://gist.github.com/371356ba0a19666fd3b5 but when the controller reads it, it's nil somehow, as this screenshot

Re: [rspec-users] View specs - best practices

2011-01-10 Thread Evgeniy Dolzhenko
+1, interested in the solution as well. We have the same issue with controller specs/Shoulda, e.g.: describe 'GET google_apps (with invalid credentials)' do before do ... get :google_apps end it { should respond_with(:ok) } it { should

[rspec-users] RSpec newbie ran rspec 2.4 on WinXP, got HOME undefined

2011-01-10 Thread RichardOnRails
Hi, I'm running WinXP-Pro/SP3 Ruby 1.8.6 I just got the RSpec Book and successfully ran gem install rspec --version 2.0.0 per the book's suggestion. In a Command window, I ran K:\rspec -v and got: K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rspec-

Re: [rspec-users] RSpec newbie ran rspec 2.4 on WinXP, got HOME undefined

2011-01-10 Thread Simon Hafner
On Monday 10 January 2011 22.37:46 RichardOnRails wrote: Hi, I'm running WinXP-Pro/SP3 Ruby 1.8.6 K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rspec- core-2.4.0/lib/rspec/core/configuration_options.rb:9:couldn't find HOME environment -- expanding `~' (ArgumentError) I

Re: [rspec-users] RSpec newbie ran rspec 2.4 on WinXP, got HOME undefined

2011-01-10 Thread RichardOnRails
Hi Simon, Sounds like rspec is relying on some *NIX stuff here Yeah, I recognized that it was looking for a home directory on a *nix box, but I couldn't think of a counterpart on Windows, because I've only got a slew of partitions (C:\, D:\ ...) but no home. You came up with a good insight.