File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
lib/rails/generators/rails/app/templates/github Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 24
24
run: bin/brakeman --no-pager
25
25
26
26
<% end -%>
27
- <%- if options[:javascript] == "importmap" && !options[:api] -%>
27
+ <%- if options[:javascript] == "importmap" && !options[:api] && !options[:skip_javascript ] -%>
28
28
scan_js:
29
29
runs-on: ubuntu-latest
30
30
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ def test_api_modified_files
61
61
assert_file ".github/workflows/ci.yml" do |content |
62
62
assert_no_match ( /test:system/ , content )
63
63
assert_no_match ( /screenshots/ , content )
64
+ assert_no_match ( /scan_js/ , content )
64
65
end
65
66
end
66
67
Original file line number Diff line number Diff line change @@ -548,6 +548,10 @@ def test_javascript_is_skipped_if_required
548
548
assert_file "app/views/layouts/application.html.erb" do |contents |
549
549
assert_match ( /stylesheet_link_tag\s +:app %>/ , contents )
550
550
end
551
+
552
+ assert_file ".github/workflows/ci.yml" do |file |
553
+ assert_no_match ( "scan_js" , file )
554
+ end
551
555
end
552
556
553
557
def test_inclusion_of_jbuilder
You can’t perform that action at this time.
0 commit comments