require'spec_helper'describeAPI::Gitignores,api: truedoincludeApiHelpersdescribe'Entity Gitignore'dobefore{getapi('/gitignores/Ruby')}it{expect(json_response['name']).toeq('Ruby')}it{expect(json_response['content']).toinclude('*.gem')}enddescribe'Entity GitignoresList'dobefore{getapi('/gitignores')}it{expect(json_response.first['name']).tobe_truthy}it{expect(json_response.first['content']).tobe_falsey}enddescribe'GET /gitignores'doit'returns a list of available license templates'dogetapi('/gitignores')expect(response.status).toeq(200)expect(json_response).tobe_anArrayexpect(json_response.size).tobe>15endendend