lib/templates/rspec/scaffold/show_spec.rb in stationed-0.4.0 vs lib/templates/rspec/scaffold/show_spec.rb in stationed-0.5.0
- old
+ new
@@ -1,7 +1,5 @@
-require 'spec_helper'
-
-describe "<%= ns_table_name %>/show" do
+RSpec.describe "<%= ns_table_name %>/show", type: :view do
let(:<%= ns_file_name %>) { build_stubbed :<%= ns_file_name %> }
before do
assign :<%= ns_file_name %>, <%= ns_file_name %>
end