Skip to content

Commit

Permalink
feat: renamed /the-matrix to /matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 8, 2017
1 parent 7d22eb8 commit 1258099
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module PactBroker
add ['groups', :pacticipant_name], Api::Resources::Group, {resource_name: "group"}

# matrix
add ['the-matrix', 'provider', :provider_name, 'consumer', :consumer_name], Api::Resources::Matrix, {resource_name: "matrix_consumer_provider"}
add ['matrix', 'provider', :provider_name, 'consumer', :consumer_name], Api::Resources::Matrix, {resource_name: "matrix_consumer_provider"}

add [], Api::Resources::Index, {resource_name: "index"}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pact_broker/ui/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def initialize
run PactBroker::Doc::Controllers::App
end

map "/the-matrix" do
map "/matrix" do
run PactBroker::UI::Controllers::Matrix
end

Expand Down
2 changes: 1 addition & 1 deletion spec/features/get_matrix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.create_verification(provider_version: '4.5.6')
end

let(:path) { "/the-matrix/provider/Provider/consumer/Consumer" }
let(:path) { "/matrix/provider/Provider/consumer/Consumer" }
let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) }

subject { get path; last_response }
Expand Down

0 comments on commit 1258099

Please sign in to comment.