lib/templates/rspec/scaffold/routing_spec.rb in stationed-0.4.0 vs lib/templates/rspec/scaffold/routing_spec.rb in stationed-0.5.0

- old
+ new

@@ -1,8 +1,6 @@ -require 'spec_helper' - <% module_namespacing do -%> -describe <%= controller_class_name %>Controller do +RSpec.describe <%= controller_class_name %>Controller, type: :view do describe 'routing' do <% unless options[:singleton] -%> it { expect(get: '/<%= ns_table_name %>').to route_to('<%= ns_table_name %>#index') } <% end -%> it { expect(get: '/<%= ns_table_name %>/new').to route_to('<%= ns_table_name %>#new') }