# File tests/drivers/mock/images_test.rb, line 97 def test_it_responses_to_json get_auth_url '/api/images', {}, { :format => :json } JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['images'].class.should == Array get_auth_url '/api/images/img1', {}, { :format => :json } last_response.status.should == 200 JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['image'].class.should == Hash end