In following code -
Class SomeControllerTest < ActionController::TestCase
record = SomeModel.create :name => ‘test’
Above record is not being saved in the database. I can confirm this by
pausing execution by calling gets() and doing a “SELECT * FROM
some_models” right into the test database which returns no rows.