spec/lib/flare_up/boot_spec.rb in flare-up-0.9 vs spec/lib/flare_up/boot_spec.rb in flare-up-0.10
- old
+ new
@@ -98,21 +98,23 @@
FlareUp::OptionStore.store_options(
{
:redshift_endpoint => 'TEST_REDSHIFT_ENDPOINT',
:database => 'TEST_DATABASE',
:redshift_username => 'TEST_REDSHIFT_USERNAME',
- :redshift_password => 'TEST_REDSHIFT_PASSWORD'
+ :redshift_password => 'TEST_REDSHIFT_PASSWORD',
+ :redshift_port => 5439
}
)
end
it 'should create a connection' do
connection = FlareUp::Boot.send(:create_connection)
expect(connection.host).to eq('TEST_REDSHIFT_ENDPOINT')
expect(connection.dbname).to eq('TEST_DATABASE')
expect(connection.user).to eq('TEST_REDSHIFT_USERNAME')
expect(connection.password).to eq('TEST_REDSHIFT_PASSWORD')
+ expect(connection.port).to eq(5439)
end
end
describe '.create_command' do
@@ -155,6 +157,6 @@
end
end
end
-end
\ No newline at end of file
+end