spec/twitter/error_spec.rb in twitter-5.5.1 vs spec/twitter/error_spec.rb in twitter-5.6.0
- old
+ new
@@ -34,10 +34,10 @@
before do
body_message = '{"' + body + '":"Client Error"}' unless body.nil?
stub_get('/1.1/statuses/user_timeline.json').with(:query => {:screen_name => 'sferik'}).to_return(:status => status, :body => body_message)
end
it "raises #{exception.name}" do
- expect { @client.user_timeline('sferik') }.to raise_error exception
+ expect { @client.user_timeline('sferik') }.to raise_error(exception)
end
end
end
context "when HTTP status is #{status} and body is errors" do