lib/rspec/request_describer.rb in rspec-request_describer-0.0.4 vs lib/rspec/request_describer.rb in rspec-request_describer-0.0.5
- old
+ new
@@ -46,10 +46,10 @@
end
end
let(:endpoint_segments) do
current_example = RSpec.respond_to?(:current_example) ? RSpec.current_example : example
- current_example.full_description.match(/(#{SUPPORTED_METHODS.join("|")}) ([\/a-z0-9_:]+)/).to_a
+ current_example.full_description.match(/(#{SUPPORTED_METHODS.join("|")}) ([\/a-z0-9_:\-]+)/).to_a
end
let(:method) do
endpoint_segments[1].downcase
end