spec/bnet/wow/character_spec.rb in bnet-0.0.5 vs spec/bnet/wow/character_spec.rb in bnet-0.0.10

- old
+ new

@@ -1,9 +1,8 @@ require 'spec_helper' describe Bnet::WOW::Character do - describe ".from_api" do let(:attrs) { { "name" => 'Alexeistukov', "realm" => 'Dalvengyr', @@ -38,17 +37,18 @@ } } it "returns the instance" do expect(subject).to be_a_kind_of(described_class) expect(subject.name).to eq("Alexeistukov") + expect(subject.realm).to eq("Dragonmaw") + expect(subject.region).to eq("us") end end context "specified character does not exist on the server", vcr: {cassette_name: 'wow_character_not_found'} do let(:attrs){ { - region: 'us', name: 'NotHereYo', realm: 'Dragonmaw', - key: VCR::SECRETS["api_key"] + region: 'us', name: 'NotHereYo', realm: 'Dragonmaw' } } it { is_expected.to be_nil } end end