Sha256: ff76b4c104f07480248c51d65fc7e0d7ceff7aef46ee02d42a988f51f3029054

Contents?: true

Size: 305 Bytes

Versions: 9

Compression:

Stored size: 305 Bytes

Contents

require 'helper'

describe Faraday::Response do
  before do
    stub_get('/api/0/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

9 entries across 9 versions & 2 rubygems

Version Path
mtgox-0.8.0 spec/faraday/response_spec.rb
mtgox-0.7.5 spec/faraday/response_spec.rb
mtgox-0.7.4 spec/faraday/response_spec.rb
mtgox-0.7.3 spec/faraday/response_spec.rb
mt_gox-0.7.7 spec/faraday/response_spec.rb
mt_gox-0.7.6 spec/faraday/response_spec.rb
mt_gox-0.7.5 spec/faraday/response_spec.rb
mt_gox-0.7.3 spec/faraday/response_spec.rb
mtgox-0.7.2 spec/faraday/response_spec.rb