# File tests/drivers/mock/api_test.rb, line 46 def test_it_responses_to_json get_url '/api', {}, { :format => :json } last_response.status.should == 200 JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['api'].class.should == Hash end