# File tests/drivers/mock/realms_test.rb, line 65 def test_it_responses_to_json get_auth_url '/api/realms', {}, { :format => :json } JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['realms'].class.should == Array get_auth_url '/api/realms/us', {}, { :format => :json } last_response.status.should == 200 JSON::parse(last_response.body).class.should == Hash JSON::parse(last_response.body)['realm'].class.should == Hash end