Skip to content

Commit

Permalink
test: add paths spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 8, 2022
1 parent 9fad916 commit 729e767
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/lib/pact_broker/api/paths_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "pact_broker/api/paths"

module PactBroker
module Api
module Paths
describe "is_badge_path?" do

BADGE_ROUTES = PactBroker.routes.select{ | route | route.path_include?("/badge") }.collect(&:path)

BADGE_ROUTES.each do | path |
context "for #{path}" do
it "returns truthy" do
expect(Paths.is_badge_path?(path)).to be_truthy
end
end
end
end
end
end
end

0 comments on commit 729e767

Please sign in to comment.