lib/templates/rspec/scaffold/index_spec.rb in stationed-0.4.0 vs lib/templates/rspec/scaffold/index_spec.rb in stationed-0.5.0
- old
+ new
@@ -1,7 +1,5 @@
-require 'spec_helper'
-
-describe "<%= ns_table_name %>/index" do
+RSpec.describe "<%= ns_table_name %>/index", type: :view do
let(:<%= table_name %>) { build_stubbed_list :<%= ns_file_name %>, 3 }
before do
assign :<%= table_name %>, <%= table_name %>
allow(view).to receive(:paginate).and_return('pagination')