Sha256: ce48dc0b5218cf882d446959b6ae2d680063780eb30efac4383bfb7c7ed70177

Contents?: true

Size: 693 Bytes

Versions: 7

Compression:

Stored size: 693 Bytes

Contents

require 'spec_helper'

describe Bitstamp do

  it 'should raise if not properly configured' do
    -> { Bitstamp.sanity_check! }.should raise_error
  end

  it 'should not raise if properly configured' do
    Bitstamp.setup do |config|
      config.key = 'test'
      config.secret = 'test'
    end

    -> { Bitstamp.sanity_check! }.should_not raise_error
  end

  it 'should have a orders helper method' do
    Bitstamp.should respond_to :orders
  end

  it 'should have a ticker helper method' do
    Bitstamp.ticker.should be_kind_of Bitstamp::Ticker
  end

  it 'should list information about your balance' do
    read_bitstamp_yaml

    Bitstamp.balance.should be_kind_of Hash
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bitstamp-0.2.6 spec/bitstamp_spec.rb
bitstamp-0.2.5 spec/bitstamp_spec.rb
bitstamp-0.2.4 spec/bitstamp_spec.rb
bitstamp-0.2.3 spec/bitstamp_spec.rb
bitstamp-0.2.2 spec/bitstamp_spec.rb
bitstamp-0.2.1 spec/bitstamp_spec.rb
bitstamp-0.2.0 spec/bitstamp_spec.rb