spec/bnet/diablo3/hero_spec.rb in bnet-0.0.3 vs spec/bnet/diablo3/hero_spec.rb in bnet-0.0.4

- old
+ new

@@ -18,9 +18,50 @@ is_expected.to be_a_kind_of(described_class) expect(subject.name).to eq('PlayerOne') expect(subject.hero_class).to eq('wizard') end + it "assigns follower" do + expect(subject.followers).to match([ + an_object_having_attributes( + follower_type: 'templar', level: 70, + gold_find: 11, magic_find: 0, experience_bonus: 19, + skills: include( + an_object_having_attributes(name: "Intervene"), + an_object_having_attributes(name: "Loyalty"), + an_object_having_attributes(name: "Charge"), + an_object_having_attributes(name: "Inspire") + ), + items: include( + an_object_having_attributes(name: "Intrepid Trinket", item_id: 'Templar_Special_203', location: 'special'), + an_object_having_attributes(name: "Cut Blast", item_id: 'Axe_1H_301', location: 'mainHand'), + an_object_having_attributes(name: "Savior's Interceptor", item_id: 'Shield_208', location: 'offHand') + ) + ), + + an_object_having_attributes( + follower_type: 'scoundrel', level: 70, + gold_find: 0, magic_find: 0, experience_bonus: 0, + skills: match([]), + items: include( + an_object_having_attributes(name: "Unwavering Find", item_id: 'Scoundrel_Special_204', location: 'special'), + an_object_having_attributes(name: "Light Crossbow of Slaying", item_id: 'Crossbow_001', location: 'mainHand'), + an_object_having_attributes(name: "Loyalty Aim", item_id: 'Ring_18', location: 'rightFinger') + ) + ), + + an_object_having_attributes( + follower_type: 'enchantress', level: 70, + gold_find: 0, magic_find: 0, experience_bonus: 0, + items: include( + an_object_having_attributes(name: "Citadel Bounty", item_id: 'Enchantress_Special_204', location: 'special'), + an_object_having_attributes(name: "Adept's Atrocity", item_id: 'Staff_203', location: 'mainHand'), + an_object_having_attributes(name: "Black Wheel", item_id: 'Ring_19', location: 'rightFinger') + ) + ) + ]) + end + it "assigns items" do expect(subject.items).to match([ an_object_having_attributes(location: "head", name: "Leoric's Crown", item_id: "Unique_Helm_002_x1" ), an_object_having_attributes(location: "torso"), an_object_having_attributes(location: "feet"),