@@ -41,7 +41,6 @@ class ViewsGeneratorTest < Rails::Generators::TestCase
4141 assert_files nil , mail_template_engine : "markerb"
4242 end
4343
44-
4544 test "Assert only views within specified directories" do
4645 run_generator %w( -v sessions registrations )
4746 assert_file "app/views/devise/sessions/new.html.erb"
@@ -68,7 +67,7 @@ class ViewsGeneratorTest < Rails::Generators::TestCase
6867 run_generator %w( -v registrations -b simple_form_for )
6968 assert_file "app/views/devise/registrations/new.html.erb" , /simple_form_for/
7069 assert_no_file "app/views/devise/confirmations/new.html.erb"
71- end
70+ end
7271
7372 test "Assert specified directories with markerb" do
7473 run_generator %w( --markerb -v passwords mailer )
@@ -93,6 +92,7 @@ def assert_files(scope = nil, options = {})
9392 assert_file "app/views/#{ scope } /shared/_links.html.erb"
9493 assert_file "app/views/#{ scope } /shared/_error_messages.html.erb"
9594 assert_file "app/views/#{ scope } /unlocks/new.html.erb"
95+ assert_file "app/views/#{ scope } /unlocks/show.html.erb"
9696 end
9797
9898 def assert_shared_links ( scope = nil )
@@ -105,6 +105,7 @@ def assert_shared_links(scope = nil)
105105 assert_file "app/views/#{ scope } /registrations/new.html.erb" , link
106106 assert_file "app/views/#{ scope } /sessions/new.html.erb" , link
107107 assert_file "app/views/#{ scope } /unlocks/new.html.erb" , link
108+ assert_file "app/views/#{ scope } /unlocks/show.html.erb" , link
108109 end
109110
110111 def assert_error_messages ( scope = nil )
0 commit comments