Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

It's `expect { }.to`, not `expect { }.should`.

  • Loading branch information...
commit 8075246f3455ab1680c826b395916a02344647c5 1 parent 460ba73
@myronmarston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/vcr/extensions/net_http_response_spec.rb
View
2  spec/vcr/extensions/net_http_response_spec.rb
@@ -25,7 +25,7 @@ def self.it_allows_the_body_to_be_read(expected_regex)
it 'raises an ArgumentError if both a destination string and a block is given to #read_body' do
dest = ''
- expect { response { |r| r.read_body(dest) { |s| } } }.should raise_error(ArgumentError, 'both arg and block given for HTTP method')
+ expect { response { |r| r.read_body(dest) { |s| } } }.to raise_error(ArgumentError, 'both arg and block given for HTTP method')
end
it 'raises an IOError when #read_body is called twice with a block' do
Please sign in to comment.
Something went wrong with that request. Please try again.