Sha256: 96472dd40a95c50a94bcd92230aebfd974331a74a24be7420f5869f72726c7f0
Contents?: true
Size: 713 Bytes
Versions: 62
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true require_relative '../../../../lib/declare_schema/schema_change/table_remove' RSpec.describe DeclareSchema::SchemaChange::TableRemove do before do load File.expand_path('../prepare_testapp.rb', __dir__) end let(:table_name) { 'networks' } let(:add_table_back) { "create table networks(\n)" } subject { described_class.new(table_name, add_table_back) } describe '#up/down' do describe '#up' do it 'responds with command' do expect(subject.up).to eq("drop_table :#{table_name}\n") end end describe '#down' do it 'responds with command' do expect(subject.down).to eq("#{add_table_back}\n\n") end end end end
Version data entries
62 entries across 62 versions & 1 rubygems