Sha256: bfe47c06cd7191c03ef12e3582d14f432e3bc3145d61ec532c85eed2100b2479

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

describe Bnet::API do
  let(:instance) do
    described_class.new(region: "eu")
  end

  describe "initialization" do
    it "can be initialized" do
      expect(instance).to be_a_kind_of(described_class)
      expect(instance.region).to eq("eu")
    end
  end

  describe "#url" do
    it "returns the base url by region" do
      expect(instance.url).to eq("https://eu.api.battle.net/")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bnet-0.0.10 spec/bnet/api_spec.rb
bnet-0.0.5 spec/bnet/api_spec.rb
bnet-0.0.4 spec/bnet/api_spec.rb
bnet-0.0.3 spec/bnet/api_spec.rb
bnet-0.0.2 spec/bnet/api_spec.rb
bnet-0.0.1 spec/bnet/api_spec.rb