From 499e99250ce4d7983b2a683bcd2cf34c4ab9e69e Mon Sep 17 00:00:00 2001 From: Robin Wenglewski Date: Fri, 14 Mar 2014 11:30:03 +0100 Subject: [PATCH] disable postgres tests by default --- .travis.yml | 2 ++ spec/db_specific/postgres/update_sequence_spec.rb | 2 +- spec/integration/spec_helper.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f6efc37..450bf41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ rvm: - 1.9.2 - 1.9.3 - 2.0.0 +env: + - ENABLE_POSTGRES_SPECS=true \ No newline at end of file diff --git a/spec/db_specific/postgres/update_sequence_spec.rb b/spec/db_specific/postgres/update_sequence_spec.rb index 896bc64..ed4e42c 100644 --- a/spec/db_specific/postgres/update_sequence_spec.rb +++ b/spec/db_specific/postgres/update_sequence_spec.rb @@ -1,6 +1,6 @@ require 'integration/spec_helper' -describe DataImport::Sequel::Postgres::UpdateSequence do +describe DataImport::Sequel::Postgres::UpdateSequence, :postgres => true do let(:table_name) { 'cities' } let(:connection) { DataImport::Database.connect('postgres://postgres@localhost/data_import_test') } subject { DataImport::Sequel::InsertWriter.new(connection, table_name) } diff --git a/spec/integration/spec_helper.rb b/spec/integration/spec_helper.rb index 973eb64..b67fba6 100644 --- a/spec/integration/spec_helper.rb +++ b/spec/integration/spec_helper.rb @@ -7,4 +7,5 @@ RSpec.configure do |config| config.extend TestingMacros + config.filter_run_excluding :postgres => true unless ENV.has_key? 'ENABLE_POSTGRES_SPECS' end