From f544ef5a9c32f858d4db800dd3260983cdcca07b Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 22 Jun 2021 10:27:30 +1000 Subject: [PATCH] chore: remove warnings --- spec/lib/pact_broker/db/clean_old_spec.rb | 4 +--- spec/lib/pact_broker/db/clean_spec.rb | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/spec/lib/pact_broker/db/clean_old_spec.rb b/spec/lib/pact_broker/db/clean_old_spec.rb index 71bc50541..7e945defc 100644 --- a/spec/lib/pact_broker/db/clean_old_spec.rb +++ b/spec/lib/pact_broker/db/clean_old_spec.rb @@ -1,11 +1,9 @@ require "pact_broker/db/clean" -IS_MYSQL = !!DB.mysql? - module PactBroker module DB # Inner queries don't work on MySQL. Seriously, MySQL??? - describe Clean, skip: true, pending: IS_MYSQL do + describe Clean, skip: true, pending: !!DB.mysql? do let(:options) { {} } let(:db) { PactBroker::DB.connection } diff --git a/spec/lib/pact_broker/db/clean_spec.rb b/spec/lib/pact_broker/db/clean_spec.rb index d949d2d0e..47dfb9b27 100644 --- a/spec/lib/pact_broker/db/clean_spec.rb +++ b/spec/lib/pact_broker/db/clean_spec.rb @@ -1,12 +1,10 @@ require "pact_broker/db/clean" require "pact_broker/matrix/unresolved_selector" -IS_MYSQL = !!DB.mysql? - module PactBroker module DB # Inner queries don't work on MySQL. Seriously, MySQL??? - describe Clean, pending: IS_MYSQL do + describe Clean, pending: !!DB.mysql? do def pact_publication_count_for(consumer_name, version_number) PactBroker::Pacts::PactPublication.where(consumer_version: PactBroker::Domain::Version.where_pacticipant_name(consumer_name).where(number: version_number)).count