Re: [rspec-users] Rspec not loading fixtures

2012-03-26 Thread David Chelimsky
On Thu, Mar 22, 2012 at 9:54 AM, Pito Salas wrote: > I am taking over a code base and am trying to run the tests. I am > somewhat new to RSpec so this might be a trivial problem. > > Basically I can tell that the fixtures are not getting loaded. All 100 > tests fail with a similar error. > > But I

[rspec-users] [rspec-rails] Mailer tests should be similar to Controller tests

2012-03-26 Thread Paulo Luis Franchini Casaretto
Hey, When I'm testing a controller, I basically test three things. Does it assign the variables the view needs? Does it render the right template? Does it do whatever the action is supposed to do? And when testing mailers I feel it should be basically the same. Does it assign the variables the v

[rspec-users] 'new' method works as expected but rspec does not recognise flash contents or redirection

2012-03-26 Thread Gordon
hi all :) Found a spec failing today. Not sure why. When I run my application and successfully added a new object, i can see 1) a redirection has taken place to the index page as expected (302 code returned) from the console 2) the flash notice's message being displayed in the index page BUT w

Re: [rspec-users] 'new' method works as expected but rspec does not recognise flash contents or redirection

2012-03-26 Thread Gordon Yeong
Guys, Not sure why but I deleted my Gemfile.lock file. Found that it's due to a stale Gemfile.lock file which is still using rspec-core 2.8.0 when in fact I just performed and update yesterday night on rspec (hence I've got rspec-core 2.9.0). Ran "rspec parts_controller.spec.rb" again and all