require 'spec_helper' describe Bnet::Diablo3 do let(:instance) do described_class.new(region: "us", key: 'somekey', secret: 'somesecret') end describe "initialization" do it "can be initialized" do expect(instance).to be_a_kind_of(described_class) expect(instance.region).to eq("us") end end describe "url" do subject{ instance.url } it { is_expected.to eq("https://us.api.battle.net/d3/") } end end