spec/mwo/mech_spec.rb in mwo-0.1.1 vs spec/mwo/mech_spec.rb in mwo-0.1.2

- old
+ new

@@ -1,7 +1,14 @@ require 'spec_helper' describe MWO::Mech do + + describe ".all" , vcr: {cassette_name: 'all_mechs'} do + it "returns json data" do + expect(described_class.all_raw).to_not be_empty + end + end + describe '.all', vcr: {cassette_name: 'all_mechs'} do let (:subject) { described_class.all } let (:hbk4g) { an_object_having_attributes(name: 'hbk-4g', max_armor: 338, mech_id: 1, total_tons: 50, weight_class: 'Medium') } let (:com3a) { an_object_having_attributes(name: 'com-3a', max_armor: 178, mech_id: 6, total_tons: 25, weight_class: 'Light') } it "returns a collection of mechs collection" do