spec/schoolfinder/client_spec.rb in schoolfinder-0.2.0 vs spec/schoolfinder/client_spec.rb in schoolfinder-0.2.1

- old
+ new

@@ -14,10 +14,11 @@ it "should return a response" do @response = @schoolfinder.school_search(:zip => "29601") @response.should_not be_nil @response.body.should be_kind_of(Array) + @response.body.first.should be_kind_of(Hashie::Rash) end end context "test_rating" do before do @@ -28,10 +29,11 @@ it "should return a response" do @response = @schoolfinder.test_rating(:nces_id => "061029001146") @response.should_not be_nil @response.body.should be_kind_of(Array) + @response.body.first.should be_kind_of(Hashie::Rash) end end context "student_diversity" do before do @@ -112,10 +114,11 @@ it "should return a response" do @response = @schoolfinder.number_of("Greenville", "SC") @response.should_not be_nil @response.body.should be_kind_of(Array) + @response.body.first.should be_kind_of(Hashie::Rash) end end context "district_search" do before do @@ -126,9 +129,10 @@ it "should return a response" do @response = @schoolfinder.district_search(:city => "Greenville", :state => "SC") @response.should_not be_nil @response.body.should be_kind_of(Array) + @response.body.first.should be_kind_of(Hashie::Rash) end end context "branding_data" do before do