Re: [Rails] Records created while tests are running are not being saved.

2010-03-18 Thread Steven Hilton
On Thu, Mar 18, 2010 at 6:08 AM, Vikrant Chaudhary wrote: > In following code - > > require "test_helper" > Class SomeControllerTest < ActionController::TestCase > >  def test_something >    record = SomeModel.create :name => 'test' >    record.save! >    gets >  end > > end > > Above record is no

[Rails] Records created while tests are running are not being saved.

2010-03-18 Thread Vikrant Chaudhary
In following code - require "test_helper" Class SomeControllerTest < ActionController::TestCase def test_something record = SomeModel.create :name => 'test' record.save! gets end end Above record is not being saved in the database. I can confirm this by pausing execution by call