spec/linodeapi/raw_spec.rb in linodeapi-1.0.1 vs spec/linodeapi/raw_spec.rb in linodeapi-2.0.0
- old
+ new
@@ -17,10 +17,10 @@
it 'fails if the username/password are invalid' do
VCR.use_cassette('basic_auth_fail') do
expect do
LinodeAPI::Raw.new(username: 'bad', password: 'bad')
- end.to raise_error RuntimeError
+ end.to raise_error LinodeAPI::APIError
end
end
it 'accepts valid username/password' do
VCR.use_cassette('basic_auth') do