File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
test/lib/generators/tailwindcss Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,22 @@ class Tailwindcss::Generators::ControllerGeneratorTest < Rails::Generators::Test
9
9
10
10
arguments %w( Messages index show )
11
11
12
- Minitest . after_run do
13
- FileUtils . rm_rf GENERATION_PATH
14
- end
12
+ Minitest . after_run do
13
+ FileUtils . rm_rf GENERATION_PATH
14
+ end
15
15
16
16
test "generates correct view templates" do
17
17
run_generator
18
18
assert_file "app/views/messages/index.html.erb"
19
19
assert_file "app/views/messages/show.html.erb"
20
20
end
21
- end
22
21
22
+ test "should revoke the template engine" do
23
+ run_generator
24
+ run_generator [ "messages" ] , behavior : :revoke
25
+
26
+ assert_no_file "app/views/messages"
27
+ assert_no_file "app/views/messages/index.html.erb"
28
+ assert_no_file "app/views/messages/show.html.erb"
29
+ end
30
+ end
You can’t perform that action at this time.
0 commit comments