Sha256: 0a86624168f03736fdab62d9bf14cc1f982254218b5e9eb0387b45268511b8a4

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

describe Bnet::Diablo3::Item do
  describe ".from_api(location, raw_response)" do
    subject { described_class.from_api(location, raw_response) }
    let(:location) {'head'}
    let(:raw_response) { {'name' => 'PooPoo Hat', 'id' => "Poopoo_69"} }

    it "should be initialized" do
      expect(subject).to be_a_kind_of(described_class)
      expect(subject).to have_attributes({
        name: 'PooPoo Hat',
        item_id: "Poopoo_69"
      })
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bnet-0.0.10 spec/bnet/diablo3/item_spec.rb
bnet-0.0.5 spec/bnet/diablo3/item_spec.rb
bnet-0.0.4 spec/bnet/diablo3/item_spec.rb