spec/features/migration_spec.rb in sql_migrations-2.0.0 vs spec/features/migration_spec.rb in sql_migrations-2.1.0.pre1
- old
+ new
@@ -2,9 +2,10 @@
before do
Dir.mkdir('/migrations')
File.open('/migrations/20150305_154010_test_migration.sql', 'w') do |f|
f.puts "CREATE TABLE test_table(col_int INTEGER, col_str STRING)"
end
+ allow(SqlMigrations::Config).to receive(:options) { { "default" => { "development" => {}}} }
@migration = SqlMigrations::Migration.find([ :default ]).first
end
it 'should be found and initialized' do
expect(@migration).to be_a(SqlMigrations::Migration)