@@ -41,7 +41,6 @@ class ViewsGeneratorTest < Rails::Generators::TestCase
41
41
assert_files nil , mail_template_engine : "markerb"
42
42
end
43
43
44
-
45
44
test "Assert only views within specified directories" do
46
45
run_generator %w( -v sessions registrations )
47
46
assert_file "app/views/devise/sessions/new.html.erb"
@@ -68,7 +67,7 @@ class ViewsGeneratorTest < Rails::Generators::TestCase
68
67
run_generator %w( -v registrations -b simple_form_for )
69
68
assert_file "app/views/devise/registrations/new.html.erb" , /simple_form_for/
70
69
assert_no_file "app/views/devise/confirmations/new.html.erb"
71
- end
70
+ end
72
71
73
72
test "Assert specified directories with markerb" do
74
73
run_generator %w( --markerb -v passwords mailer )
@@ -93,6 +92,7 @@ def assert_files(scope = nil, options = {})
93
92
assert_file "app/views/#{ scope } /shared/_links.html.erb"
94
93
assert_file "app/views/#{ scope } /shared/_error_messages.html.erb"
95
94
assert_file "app/views/#{ scope } /unlocks/new.html.erb"
95
+ assert_file "app/views/#{ scope } /unlocks/show.html.erb"
96
96
end
97
97
98
98
def assert_shared_links ( scope = nil )
@@ -105,6 +105,7 @@ def assert_shared_links(scope = nil)
105
105
assert_file "app/views/#{ scope } /registrations/new.html.erb" , link
106
106
assert_file "app/views/#{ scope } /sessions/new.html.erb" , link
107
107
assert_file "app/views/#{ scope } /unlocks/new.html.erb" , link
108
+ assert_file "app/views/#{ scope } /unlocks/show.html.erb" , link
108
109
end
109
110
110
111
def assert_error_messages ( scope = nil )
0 commit comments