spec/generators/scaffold_generator_spec.rb in gris-0.0.7 vs spec/generators/scaffold_generator_spec.rb in gris-0.0.8
- old
+ new
@@ -77,9 +77,13 @@
it 'the application endpoint inherits from Grape::API' do
expect(application_api_file).to match(/class ApplicationEndpoint < Grape::API/)
end
+ it 'the application endpoint uses hal+json content_type' do
+ expect(application_api_file).to include "content_type :json, 'application/hal+json'"
+ end
+
it 'mounts the RootPresenter' do
expect(application_api_file).to match(/present self, with: RootPresenter/)
end
it 'uses Grape::Formatter::Roar json formatter' do