spec/generators/scaffold_generator_spec.rb in gris-0.4.3 vs spec/generators/scaffold_generator_spec.rb in gris-0.4.4

- old
+ new

@@ -96,11 +96,19 @@ it 'defines RootPresenter module' do expect(root_presenter_file).to match(/module RootPresenter/) end - it 'includes Gris::Presenter' do - expect(RootPresenter).to include(Gris::Presenter) + it 'includes Gris::RootPresenter' do + expect(RootPresenter).to include(Gris::RootPresenter) + end + + it 'includes link to self' do + expect(root_presenter_file).to match(/link :self do/) + end + + it 'includes link to health middleware' do + expect(root_presenter_file).to match(/endpoint_link :health/) end end it 'generates a token authentication spec helper endpoint' do expect(File).to exist("#{app_path}/spec/support/shared_authentication_spec_helper.rb")