[rspec-users] flash.now

2009-03-27 Thread Yi
Hi, How can I test flash.now[:key] is being set in a controller test? Both flash[:key] and flash.now[:key].should == message didn't work I can use response.session["flash"][:key].should == message . Just looks bad Thanks Yi -- http://yiwenandsoftware.wordpress.com

Re: [rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails

2009-03-27 Thread Tadatoshi Takahashi
Stephen Eley wrote: > On Fri, Mar 27, 2009 at 4:50 PM, Tadatoshi Takahashi > wrote: >> >> About Steve's comment, >> I may not be familiar with everything in Ruby on Rails but I am willing >> to learn. > > FWIW, I absolutely did not mean my comment as an insult, to you or > anybody else. I was go

Re: [rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails

2009-03-27 Thread Stephen Eley
On Fri, Mar 27, 2009 at 4:50 PM, Tadatoshi Takahashi wrote: > > About Steve's comment, > I may not be familiar with everything in Ruby on Rails but I am willing > to learn. FWIW, I absolutely did not mean my comment as an insult, to you or anybody else. I was going a bit more general, and wasn't

Re: [rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails

2009-03-27 Thread Tadatoshi Takahashi
Stephen Eley wrote: > On Fri, Mar 27, 2009 at 8:36 AM, David Chelimsky > wrote: >> >> You can also change spec_helper.rb to force the test environment with: >> �ENV["RAILS_ENV"] = 'test' >> That's what it used to do but somebody complained that it shouldn't >> force an environment :) > > Yeah.

Re: [rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails

2009-03-27 Thread Stephen Eley
On Fri, Mar 27, 2009 at 8:36 AM, David Chelimsky wrote: > > You can also change spec_helper.rb to force the test environment with: >  ENV["RAILS_ENV"] = 'test' > That's what it used to do but somebody complained that it shouldn't > force an environment :) Yeah. Running tests in the 'test' enviro

Re: [rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails

2009-03-27 Thread David Chelimsky
On Wed, Mar 25, 2009 at 6:58 PM, Mark Wilden wrote: > On Wed, Mar 25, 2009 at 2:49 PM, Tadatoshi Takahashi > wrote: >> Stephen Eley wrote: >>> On Wed, Mar 25, 2009 at 3:29 PM, Tadatoshi Takahashi >>> wrote: P.S. It seems that autospec is run against test database and that "rake sp

[rspec-users] [Cucumber][email-spec] Testing Incoming Email with email-spec

2009-03-27 Thread Mischa Fierer
Hi, I've done some work for email-spec that allows you to quickly test incoming e-mail handling. Does any body else receive e-mail? If so, I would love your input/feedback, as I'm hoping this will eventually get merged into master so that everyone can use. The branch i'm working in is here