lib/mocktra.rb in mocktra-1.0.0 vs lib/mocktra.rb in mocktra-1.0.1
- old
+ new
@@ -5,10 +5,9 @@
WebMock.allow_net_connect!
module Mocktra
class << self
def mocktra(pattern, &block)
- # TODO
pattern = case pattern
when Regexp
pattern
when /^http/
/^#{Regexp.quote(pattern)}/
\ No newline at end of file