spec/environment_spec.rb in seed_dump-3.2.2 vs spec/environment_spec.rb in seed_dump-3.2.3

- old
+ new

@@ -109,9 +109,19 @@ end end end end + describe "MODELS_EXCLUDE" do + it "should dump all non-empty models except the specified models" do + FactoryGirl.create(:another_sample) + + SeedDump.should_receive(:dump).with(Sample, anything) + + SeedDump.dump_using_environment('MODELS_EXCLUDE' => 'AnotherSample') + end + end + it 'should run ok without ActiveRecord::SchemaMigration being set (needed for Rails Engines)' do schema_migration = ActiveRecord::SchemaMigration ActiveRecord.send(:remove_const, :SchemaMigration)