Sha256: fb97a694d1c19e630125449643bcabd098315350279f8ce8ab55a108aff2c3c9

Contents?: true

Size: 404 Bytes

Versions: 9

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

describe Bitstamp::Orders do
  before :each do
    read_bitstamp_yaml
  end

  it "should return an array when querying for all orders" do
    Bitstamp.orders.all.should be_kind_of Array
  end

  it "should sell bitcoins" do
    Bitstamp.orders.sell(:amount => 1, :price => 1000)
  end

  it "should buy bitcoins" do
    Bitstamp.orders.buy(:amount => 1, :price => 1.01)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bitstamp-0.2.8 spec/orders_spec.rb
bitstamp-0.2.7 spec/orders_spec.rb
bitstamp-0.2.6 spec/orders_spec.rb
bitstamp-0.2.5 spec/orders_spec.rb
bitstamp-0.2.4 spec/orders_spec.rb
bitstamp-0.2.3 spec/orders_spec.rb
bitstamp-0.2.2 spec/orders_spec.rb
bitstamp-0.2.1 spec/orders_spec.rb
bitstamp-0.2.0 spec/orders_spec.rb