lib/rspec/request_describer.rb in rspec-request_describer-0.0.5 vs lib/rspec/request_describer.rb in rspec-request_describer-0.0.6
- 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("|")}) (\S+)/).to_a
end
let(:method) do
endpoint_segments[1].downcase
end