I'm using RSpec on Rails and it seems that my fixtures are saved into
the database. I don't want that. Does the fixtures call take any
parameters to don't commit the examples to the database?
I can't find the docs for that. Can anyone point to me where they are?
And which database did you configure in your database.yml, the same database that your development environment is using? They should be in different databases because when you run the specs it will reload all data in the tables that relate to the fixtures you’re calling.
linking to free ebooks on your site like that is illegal. Please do not link to ebooks of books that authors have worked so hard on. Remove the link from your signature.
Thanks Ryan. I was kind of surprised when I had to manually change
spec_helper.rb and set ENV["RAILS_ENV"] to "development". I will
create a test db.
I do want to know, is there a way of not saving the fixtures in the
database, or do I have to delete them in the teardown method?