lib/bearcat/spec_helpers.rb in bearcat-1.3.52 vs lib/bearcat/spec_helpers.rb in bearcat-1.3.53

- old
+ new

@@ -3,9 +3,10 @@ # Bearcat RSpec Helpers # Can be included in your spec_helper.rb file by using: # - `require 'bearcat/spec_helpers'` # And # - `config.include Bearcat::SpecHelpers` +# This helper requires `gem 'method_source'` in your test group module Bearcat::SpecHelpers SOURCE_REGEX = /(?<method>get|post|delete|put)\((?<quote>\\?('|"))(?<url>.*)\k<quote>/ # Helper method to Stub Bearcat requests. # Automagically parses the Bearcat method source to determine the correct URL to stub. \ No newline at end of file