Sha256: 50d30b4b5557f640e3b72c15002cdfdd61f3dca6560171ed4d364de5c518da3b

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'battlenet'

describe Battlenet::Realm do
  let(:api) { Battlenet.new }

  it "fetches realm data" do
    VCR.use_cassette('realm') do
      realm = api.realm
      realm['realms'].find { |r| r['name'] == 'Nazjatar' }['population'].should == 'low'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
battlenet-1.2.0 spec/integration/realm_spec.rb
battlenet-1.1.1 spec/integration/realm_spec.rb
battlenet-1.1.0 spec/integration/realm_spec.rb
battlenet-1.0.0 spec/integration/realm_spec.rb