Sha256: cfff593d6206f4ae303f739078cd4356a2ad4db921c0a4b953ff24bbe66260a3

Contents?: true

Size: 710 Bytes

Versions: 6

Compression:

Stored size: 710 Bytes

Contents

require 'spec_helper'

describe Bnet::WOW::Data::CharacterRace do
  describe ".find_all", vcr: {cassette_name: 'wow_data_character_races_all'} do
    let(:args){ {key: VCR::SECRETS["api_key"], region: 'us'} }

    subject(:collection) {described_class.find_all(args)}
    it "returns a collection of CharacterRace instances" do
      expect(collection).to_not be_empty
      collection.each do |character_race|
        expect(character_race).to be_a_kind_of(described_class)
        expect(character_race.race_id).to_not be_nil
        expect(character_race.mask).to_not be_nil
        expect(character_race.name).to_not be_empty
        expect(character_race.side).to_not be_empty
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bnet-0.0.10 spec/bnet/wow/data/character_race_spec.rb
bnet-0.0.5 spec/bnet/wow/data/character_race_spec.rb
bnet-0.0.4 spec/bnet/wow/data/character_race_spec.rb
bnet-0.0.3 spec/bnet/wow/data/character_race_spec.rb
bnet-0.0.2 spec/bnet/wow/data/character_race_spec.rb
bnet-0.0.1 spec/bnet/wow/data/character_race_spec.rb