spec/generators/api_generator_spec.rb in gris-0.4.3 vs spec/generators/api_generator_spec.rb in gris-0.4.4
- old
+ new
@@ -70,11 +70,10 @@
end
it 'adds links to RootPresenter' do
expected_root_presenter_file = File.join(generator_tmp_directory, 'app/presenters/root_presenter.rb')
presenter_file = File.read(expected_root_presenter_file)
- expect(presenter_file).to match(/link :article do |opts|/)
- expect(presenter_file).to match(/link :articles do |opts|/)
+ expect(presenter_file).to match(/resource_links :article/)
end
end
describe 'spec' do
it 'creates an api spec' do