Skip to content

Commit

Permalink
feat: add missing super calls in BaseResource child classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 8, 2019
1 parent fbe3266 commit 1071ca8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/api/resources/can_i_deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Api
module Resources
class CanIDeploy < Matrix
def initialize
super
@query_params = JSON.parse(Rack::Utils.parse_nested_query(request.uri.query).to_json, symbolize_names: true)
@selectors, @options = PactBroker::Matrix::ParseCanIDeployQuery.call(query_params)
end
Expand Down
1 change: 1 addition & 0 deletions lib/pact_broker/api/resources/matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Matrix < BaseResource
attr_reader :selectors, :options

def initialize
super
@selectors, @options = PactBroker::Matrix::ParseQuery.call(request.uri.query)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Resources
class MatrixForConsumerAndProvider < BaseResource

def initialize
super
_, @options = PactBroker::Matrix::ParseQuery.call(request.uri.query)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Api
module Resources
class ProviderPactsForVerification < ProviderPacts
def initialize
super
@query = Rack::Utils.parse_nested_query(request.uri.query)
end

Expand Down

0 comments on commit 1071ca8

Please sign in to comment.