spec/kpm/remote/migrations_spec.rb in kpm-0.2.2 vs spec/kpm/remote/migrations_spec.rb in kpm-0.2.3
- old
+ new
@@ -16,20 +16,20 @@
end
end
context 'killbill' do
it 'should be able to find migrations between two versions' do
- migrations = KPM::Migrations.new('work-for-release-0.16.3', 'work-for-release-0.16.4', 'killbill/killbill', ENV['TOKEN']).migrations
+ migrations = KPM::Migrations.new('killbill-0.16.3', 'killbill-0.16.4', 'killbill/killbill', ENV['TOKEN']).migrations
migrations.size.should == 1
migrations.first[:name].should == 'V20160324060345__revisit_payment_methods_indexes_509.sql'
migrations.first[:sql].should == "drop index payment_methods_active_accnt on payment_methods;\n"
KPM::Migrations.new('master', 'master', 'killbill/killbill', ENV['TOKEN']).migrations.size.should == 0
end
it 'should be able to find migrations for a given version' do
- migrations = KPM::Migrations.new('work-for-release-0.16.4', nil, 'killbill/killbill', ENV['TOKEN']).migrations
+ migrations = KPM::Migrations.new('killbill-0.16.4', nil, 'killbill/killbill', ENV['TOKEN']).migrations
migrations.size.should == 1
migrations.first[:name].should == 'V20160324060345__revisit_payment_methods_indexes_509.sql'
migrations.first[:sql].should == "drop index payment_methods_active_accnt on payment_methods;\n"
end