spec/generators/scaffold_generator_spec.rb in gris-0.5.3 vs spec/generators/scaffold_generator_spec.rb in gris-0.5.4
- old
+ new
@@ -91,9 +91,13 @@
it 'the application endpoint uses hal+json content_type' do
expect(application_api_file).to include "content_type :json, 'application/hal+json'"
end
+ it 'the application endpoint enables cascading' do
+ expect(application_api_file).to include 'cascade true'
+ 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