Sha256: 77d4a6508fe2f6650c6be30e4b2a055731b61161160853a15520215767bc04f1

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'

describe MWO::Weapon do

  describe ".all" do
    subject(:weapons) {described_class.all}
    it "returns a collection of weapons", vcr: {cassette_name: 'all_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, factions: include(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, factions: include(clan: true, inner_sphere: false))
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mwo-0.0.1 spec/mwo/weapon_spec.rb