Re: [rspec-users] Failing Flash Spec

2010-05-17 Thread Kwang how Tan
Both Spec still fail :( 1) SessionsController #create authenticate fail flash.now[:error] should be set to failure Failure/Error: flash[:error].should == "Invalid username or password!" expected: "Invalid username or password!", got: nil (using ==) # /home/tkhow/.rvm/gems/r

Re: [rspec-users] Failing Flash Spec

2010-05-17 Thread David Chelimsky
On Mon, May 17, 2010 at 9:32 PM, Kwang how Tan wrote: > Here are the failure messages, and the backtraces. > > Thx > > 1) SessionsController #create authenticate fail flash.now[:error] should > be set to failure >    Failure/Error: flash.now[:error].should == "Invalid username or > password!" >  

Re: [rspec-users] Failing Flash Spec

2010-05-17 Thread Kwang how Tan
Here are the failure messages, and the backtraces. Thx 1) SessionsController #create authenticate fail flash.now[:error] should be set to failure Failure/Error: flash.now[:error].should == "Invalid username or password!" expected: "Invalid username or password!", got: nil (usin

Re: [rspec-users] Failing Flash Spec

2010-05-17 Thread David Chelimsky
On Mon, May 17, 2010 at 4:37 AM, Kwang how Tan wrote: >> Not if you don't post the failure messages :) Please do so. > > Sorry, I don't understand what you mean. > Please explain. Please run the spec and post the failure messages you get. Use the -b flag you get a full backtrace: spec spec/contr

Re: [rspec-users] Failing Flash Spec

2010-05-17 Thread Kwang how Tan
> Not if you don't post the failure messages :) Please do so. Sorry, I don't understand what you mean. Please explain. Thx -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/lis

Re: [rspec-users] Failing Flash Spec

2010-05-16 Thread David Chelimsky
On May 15, 2010, at 7:18 PM, Kwang how Tan wrote: > I am having failing simple spec which I couldn't figure out why :-( > http://gist.github.com/402517 > > * ffaker (0.4.0) > * machinist (1.0.6) > * rails (3.0.0.beta3) > * rspec (2.0.0.beta.8) > * rspec-core (2.0.0.beta.8) > * rspec-expecta

[rspec-users] Failing Flash Spec

2010-05-15 Thread Kwang how Tan
I am having failing simple spec which I couldn't figure out why :-( http://gist.github.com/402517 * ffaker (0.4.0) * machinist (1.0.6) * rails (3.0.0.beta3) * rspec (2.0.0.beta.8) * rspec-core (2.0.0.beta.8) * rspec-expectations (2.0.0.beta.8) * rspec-mocks (2.0.0.beta.8) * rspec-r