Skip to content

Commit

Permalink
refactor: rename VerifiablePactsQueryDecorator to PactsForVerificatio…
Browse files Browse the repository at this point in the history
…nQueryDecorator
  • Loading branch information
bethesque committed Sep 3, 2021
1 parent edf9c6c commit ac2bfe9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module PactBroker
module Api
module Decorators
class VerifiablePactsQueryDecorator < BaseDecorator
class PactsForVerificationQueryDecorator < BaseDecorator
using PactBroker::HashRefinements

collection :provider_version_tags, default: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "pact_broker/api/resources/provider_pacts"
require "pact_broker/api/decorators/verifiable_pacts_decorator"
require "pact_broker/api/contracts/pacts_for_verification_query_string_schema"
require "pact_broker/api/decorators/verifiable_pacts_query_decorator"
require "pact_broker/api/decorators/pacts_for_verification_query_decorator"
require "pact_broker/api/contracts/pacts_for_verification_json_query_schema"
require "pact_broker/hash_refinements"

Expand Down Expand Up @@ -76,7 +76,7 @@ def query_schema
end

def parsed_query_params
@parsed_query_params ||= decorator_class(:verifiable_pacts_query_decorator).new(OpenStruct.new).from_hash(query)
@parsed_query_params ||= decorator_class(:pacts_for_verification_query_decorator).new(OpenStruct.new).from_hash(query)
end

def query
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require "pact_broker/api/decorators/verifiable_pacts_query_decorator"
require "pact_broker/api/decorators/pacts_for_verification_query_decorator"

module PactBroker
module Api
module Decorators
describe VerifiablePactsQueryDecorator do
describe PactsForVerificationQueryDecorator do

let(:provider_version_tags) { %w[dev] }
let(:provider_version_branch) { "main" }

subject { VerifiablePactsQueryDecorator.new(OpenStruct.new).from_hash(params) }
subject { PactsForVerificationQueryDecorator.new(OpenStruct.new).from_hash(params) }

context "when parsing JSON params" do
let(:params) do
Expand Down

0 comments on commit ac2bfe9

Please sign in to comment.