spec/unit/request_pattern_spec.rb in webmock-1.24.6 vs spec/unit/request_pattern_spec.rb in webmock-2.0.0.beta1
- old
+ new
@@ -52,10 +52,10 @@
@request_pattern.with(:headers => {'A' => 'a'})
expect(@request_pattern.to_s).to eq(WebMock::RequestPattern.new(:get, "www.example.com", :headers => {'A' => 'a'}).to_s)
end
it "should raise an error if options passed to `with` are invalid" do
- expect { @request_pattern.with(:foo => "bar") }.to raise_error('Unknown key: "foo". Valid keys are: "body", "headers", "query"')
+ expect { @request_pattern.with(:foo => "bar") }.to raise_error('Unknown key: "foo". Valid keys are: "body", "headers", "query", "basic_auth"')
end
it "should raise an error if neither options or block is provided" do
expect { @request_pattern.with() }.to raise_error('#with method invoked with no arguments. Either options hash or block must be specified.')
end