spec/faraday/response_spec.rb in mtgox-0.9.1 vs spec/faraday/response_spec.rb in mtgox-1.0.0
- old
+ new
@@ -5,32 +5,38 @@
before do
stub_get('/api/1/BTCUSD/trades/fetch').
to_return(status: 200, body: fixture('mysql_error'))
end
- it "should raise MtGox::MysqlError" do
- expect { MtGox.trades }.to raise_error(MtGox::MysqlError)
+ it "raises MtGox::MysqlError" do
+ expect {
+ MtGox.trades
+ }.to raise_error(MtGox::MysqlError)
end
end
describe "Error" do
before do
stub_get('/api/1/BTCUSD/trades/fetch').
to_return(status: 200, body: fixture('unknown_error.json'))
end
- it "should raise MtGox::Error" do
- expect { MtGox.trades }.to raise_error(MtGox::Error)
+ it "raises MtGox::Error" do
+ expect {
+ MtGox.trades
+ }.to raise_error(MtGox::Error)
end
describe "UnauthorizedError" do
before do
stub_get('/api/1/BTCUSD/trades/fetch').
to_return(status: 403, body: fixture('error.json'))
end
- it "should raise MtGox::UnauthorizedError" do
- expect { MtGox.trades }.to raise_error(MtGox::UnauthorizedError)
+ it "raises MtGox::UnauthorizedError" do
+ expect {
+ MtGox.trades
+ }.to raise_error(MtGox::UnauthorizedError)
end
end
end
end