Sha256: 3b2e52369d712ba5bc29217f9bbe9108c970eebc3667729025bc1141afb947d6

Contents?: true

Size: 304 Bytes

Versions: 8

Compression:

Stored size: 304 Bytes

Contents

require 'helper'

describe Faraday::Response do
  before do
    stub_get('/code/data/getTrades.php').
      to_return(:status => 200, :body => fixture('mysql_error'))
  end

  it "should raise MtGox::MysqlError" do
    lambda do
      MtGox.trades
    end.should raise_error(MtGox::MysqlError)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mtgox-0.7.1 spec/faraday/response_spec.rb
mtgox-0.7.0 spec/faraday/response_spec.rb
mtgox-0.6.0 spec/faraday/response_spec.rb
mtgox-0.5.1 spec/faraday/response_spec.rb
mtgox-0.5.0 spec/faraday/response_spec.rb
mtgox-0.4.1 spec/faraday/response_spec.rb
mtgox-0.4.0 spec/faraday/response_spec.rb
mtgox-0.3.1 spec/faraday/response_spec.rb