spec/spec_helper.rb in emotions-0.2.2 vs spec/spec_helper.rb in emotions-0.3
- old
+ new
@@ -20,9 +20,14 @@
# Create the SQLite database
setup_database
# Run our migration
run_default_migration
+
+ # Create Emotion model
+ spawn_model 'Emotion', ActiveRecord::Base do
+ acts_as_emotion
+ end
end
config.after(:each) do
# Make sure we remove our test database file
cleanup_database