[rspec-devel] Rspec blowing away my initial data
weexpectedthis
weexpectedthis at gmail.com
Fri Jun 6 16:21:29 EDT 2008
I have this code in the only migration I have in my app:
create_table :states do |generic_table|
generic_table.with_options :null => false do |t|
t.string :name
t.datetime :created_at, :updated_at
end
end
State.create!(:name => 'New')
State.create!(:name => 'Submitting')
State.create!(:name => 'Reviewing')
State.create!(:name => 'Implementing')
State.create!(:name => 'Finished')
When I run `rake test` it builds my test database with the migration I have
correctly. But then when I run `rake spec` and look at the database, the
initial data (all of the States) are missing.
So my questions are:
1) Does rspec blow away my initial data before it runs tests?
2) How can I get it to stop doing that?
--
View this message in context: http://www.nabble.com/Rspec-blowing-away-my-initial-data-tp17697155p17697155.html
Sent from the rspec-devel mailing list archive at Nabble.com.
More information about the rspec-devel
mailing list