spec/features/seed_spec.rb in sql_migrations-2.2.1 vs spec/features/seed_spec.rb in sql_migrations-2.4.0

- old
+ new

@@ -8,11 +8,11 @@ File.open('/seeds/20150305_154011_test_seed.sql', 'w') do |f| f.puts 'INSERT INTO test_table VALUES(10, "test_string")' end allow(SqlMigrations::Config).to receive(:databases) { { default: { development: {} } } } database = SqlMigrations::Database.new(:default, adapter: :sqlite) - database.execute_migrations - database.seed_database + database.migrate + database.seed end it 'should be properly execute' do expect(@sqlite_db.table_exists?(:test_table)).to be true expect(@sqlite_db[:test_table].first).to eq(col_int: 10, col_str: 'test_string')