# File tests/drivers/mock/hardware_profiles_test.rb, line 77 def test_it_responses_to_json get_url '/api/hardware_profiles', {}, { :format => :json } JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['hardware_profiles'].class.should == Array get_url '/api/hardware_profiles/m1-xlarge', {}, { :format => :json } last_response.status.should == 200 JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['hardware_profile'].class.should == Hash end