Skip to content

Commit

Permalink
chore: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 22, 2021
1 parent c5df570 commit f544ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions spec/lib/pact_broker/db/clean_old_spec.rb
Original file line number Diff line number Diff line change
@@ -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 }

Expand Down
4 changes: 1 addition & 3 deletions spec/lib/pact_broker/db/clean_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f544ef5

Please sign in to comment.