spec/mwo/weapon_spec.rb in mwo-0.1.1 vs spec/mwo/weapon_spec.rb in mwo-0.1.2
- old
+ new
@@ -1,9 +1,15 @@
require 'spec_helper'
describe MWO::Weapon do
describe ".all" , vcr: {cassette_name: 'all_weapons'} do
+ it "returns json data" do
+ expect(described_class.all_raw).to_not be_empty
+ end
+ end
+
+ describe ".all" , vcr: {cassette_name: 'all_weapons'} do
subject(:weapons) {described_class.all}
it "returns a collection of weapons"do
expect(weapons).to include(
an_object_having_attributes(weapon_id: 1000, name: "AutoCannon20", type: 'Ballistic', num_firing: 1, damage: 20, heatpenalty: 24, heat: 6, clan: false, inner_sphere: true),
an_object_having_attributes(weapon_id: 1241, name: "ClanAutoCannon20", type: 'Ballistic', num_firing: 5, damage: 4, heatpenalty: 30, heat: 6, clan: true, inner_sphere: false)