Sha256: 4419be6ccde9fde5e7e6f7e1e3ef396bc369d4fa3d48a0f4dd32cff7bcd1b85e

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'spec_helper'

describe Hatsrank::Client do
  let(:client) { Hatsrank::Client.new }

  describe '#unusual_hats' do
    use_vcr_cassette

    subject { client.unusual_hats }
    specify { subject.count > 400 }

    it 'should include the ourdoorsman' do
      subject.first.uri.should == "market/listings/440/Unusual%20Outdoorsman"
    end
  end

  describe '#listings' do
    use_vcr_cassette

    let(:hat) { Hatsrank::Marketable.new client, 'http://steamcommunity.com/market/listings/440/Unusual%20Bombing%20Run' }
    subject { client.listings hat }

    specify { subject.first.item.name.should == "Unusual Bombing Run" }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatsrank-0.0.1 spec/hatsrank/client_spec.rb