spec/lib/flare_up/connection_spec.rb in flare-up-0.9 vs spec/lib/flare_up/connection_spec.rb in flare-up-0.10

- old
+ new

@@ -1,9 +1,9 @@ describe FlareUp::Connection do subject do - FlareUp::Connection.new('TEST_HOST', 'TEST_DB_NAME', 'TEST_USER', 'TEST_PASSWORD') + FlareUp::Connection.new('TEST_HOST', 'TEST_DB_NAME', 'TEST_USER', 'TEST_PASSWORD', 5439) end let(:mock_pg_connection) { instance_double('PGConn') } its(:host) { should == 'TEST_HOST' } @@ -13,11 +13,11 @@ its(:password) { should == 'TEST_PASSWORD' } its(:connect_timeout) { should == 5 } describe 'Writers' do subject do - FlareUp::Connection.new('', '', '', '').tap do |c| + FlareUp::Connection.new('', '', '', '', '').tap do |c| c.host = 'TEST_HOST' c.port = 111 c.dbname = 'TEST_DB_NAME' c.user = 'TEST_USER' c.password = 'TEST_PASSWORD' @@ -133,6 +133,6 @@ expect(mock_pg_connection).to receive(:cancel) subject.cancel_current_command end end -end \ No newline at end of file +end