Sha256: 6d20a25a3b32d33e52b4bc8daf1aa4c17f3d705ad1fb5130daac0430d7811494

Contents?: true

Size: 592 Bytes

Versions: 6

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

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

    subject(:collection) {described_class.find_all(args)}
    it "returns a collection of Battlegroup instances" do
      expect(collection).to_not be_empty
      collection.each do |battleground|
        expect(battleground).to be_a_kind_of(described_class)
        expect(battleground.name).to_not be_empty
        expect(battleground.slug).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/battlegroup_spec.rb
bnet-0.0.5 spec/bnet/wow/data/battlegroup_spec.rb
bnet-0.0.4 spec/bnet/wow/data/battlegroup_spec.rb
bnet-0.0.3 spec/bnet/wow/data/battlegroup_spec.rb
bnet-0.0.2 spec/bnet/wow/data/battlegroup_spec.rb
bnet-0.0.1 spec/bnet/wow/data/battlegroup_spec.rb