Permalink
Browse files

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

  • Loading branch information...
1 parent 460ba73 commit 8075246f3455ab1680c826b395916a02344647c5 @myronmarston committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 8075246

Please sign in to comment.