sentences_controller_spec.rb revision b7a6e3e25c8160f135b5e6cbc7d0d674249f6b94
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294Timo Sirainenrequire 'spec_helper'
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde it { should render_template 'sentences/_sentence' }
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen context 'requesting json representation', api_specification: true do
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen let(:sentence_schema) { schema_for('sentence') }
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde expect(response.content_type.to_s).to eq('application/json')
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen it 'should return a representation that validates against the schema' do
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde VCR.use_cassette 'api/json-schemata/sentence' do