Sha256: 45bb9ece44c1e783b1eaa0eb4b8d25b23aac7e727e5170084111ecf0bdfd7b67

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

describe BitfinexApi do

  describe BitfinexApi::Ticker do
    let(:ticker) { BitfinexApi::Ticker.new "btcusd"}

    it 'contain the right type of values' do
      expect(ticker.high).to be_a_kind_of(Numeric)
      expect(ticker.low).to be_a_kind_of(Numeric)
      expect(ticker.average).to be_a_kind_of(Numeric)
      expect(ticker.last).to be_a_kind_of(Numeric)
      expect(ticker.buy).to be_a_kind_of(Numeric)
      expect(ticker.sell).to be_a_kind_of(Numeric)
      expect(ticker.volume).to be_a_kind_of(Numeric)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitfinex_api-0.0.1 spec/bitfinex_spec.rb