spec/lib/fourchette/heroku_spec.rb in fourchette-0.1.0 vs spec/lib/fourchette/heroku_spec.rb in fourchette-0.1.1
- old
+ new
@@ -71,10 +71,16 @@
heroku.create_app(to_app_name)
end
end
describe '#copy_config' do
- let(:vars) { { 'WHATEVER' => 'ok', 'HEROKU_POSTGRESQL_SOMETHING_URL' => 'FAIL@POSTGRES/DB' } }
+ let(:vars) do
+ {
+ 'WHATEVER' => 'ok',
+ 'HEROKU_POSTGRESQL_SOMETHING_URL' => 'FAIL@POSTGRES/DB',
+ 'DATABASE_URL' => 'FAIL@POSTGRES/DB'
+ }
+ end
let(:cleaned_vars) { { 'WHATEVER' => 'ok'} }
it 'calls #config_vars' do
heroku.client.config_var.stub(:update)
heroku.should_receive(:config_vars).with(from_app_name).and_return(vars)