spec/lib/fourchette/heroku_spec.rb in fourchette-0.1.1 vs spec/lib/fourchette/heroku_spec.rb in fourchette-0.1.2
- old
+ new
@@ -121,10 +121,10 @@
heroku.client.stub(:addon).and_return(double('addon'))
heroku.client.addon.stub(:list).and_return(addon_list)
end
context 'when a heroku-postgresql addon is enabled' do
- let(:addon_list) { [{ 'addon_service' => { 'name' => 'heroku-postgresql' } }] }
+ let(:addon_list) { [{ 'addon_service' => { 'name' => 'Heroku Postgres' } }] }
it 'calls Fourchette::Pgbackups#copy' do
Fourchette::Pgbackups.any_instance.should_receive(:copy).with(from_app_name, to_app_name)
heroku.copy_pg(from_app_name, to_app_name)
end