Sha256: 3c8b832a50d54d3d09d7c0bc30492c6f274a434255358f36488cc6a5727aefe5

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

describe 'Item' do
  before do
    VCR.use_cassette('item_data') do
      @my_item = Covetous::Data::Item.new 'CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA'
    end
  end

  after do
    VCR.eject_cassette
  end

  describe 'when given item data on create' do
    it 'should have the correct url' do
      @my_item.url.must_equal 'http://us.battle.net/api/d3/data/item/CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA'
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
covetous-0.0.1 spec/covetous/info/item_spec.rb