diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index 2ec02de4e..01c38d528 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -29,14 +29,6 @@ jobs:
gemfile: gemfiles/Gemfile-rails.6.0.x
experimental: [false]
include:
- - ruby: 2.5
- os: ubuntu-latest
- gemfile: gemfiles/Gemfile-rails-edge
- experimental: true
- - ruby: 2.6
- os: ubuntu-latest
- gemfile: gemfiles/Gemfile-rails-edge
- experimental: true
- ruby: 2.7
os: ubuntu-latest
gemfile: gemfiles/Gemfile-rails-edge
diff --git a/gemfiles/Gemfile-rails-edge b/gemfiles/Gemfile-rails-edge
index 9b5c32d7e..c096ad2d7 100644
--- a/gemfiles/Gemfile-rails-edge
+++ b/gemfiles/Gemfile-rails-edge
@@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gemspec path: "../"
-gem "rails", github: "rails/rails"
+gem "rails", github: "rails/rails", branch: "main"
gem "arel", github: "rails/arel"
gem "rake", ">= 11.1"
gem "rack-proxy", require: false
diff --git a/test/helper_test.rb b/test/helper_test.rb
index d2eca7d1b..116127e71 100644
--- a/test/helper_test.rb
+++ b/test/helper_test.rb
@@ -117,29 +117,41 @@ def test_preload_pack_asset
end
def test_stylesheet_pack_tag_split_chunks
- assert_equal \
- %(\n) +
+ assert_equal stylesheet_packs_with_chunks_tag("application", "hello_stimulus").in?([
+ %(\n) +
+ %(\n) +
+ %(),
+
+ %(\n) +
%(\n) +
%(),
- stylesheet_packs_with_chunks_tag("application", "hello_stimulus")
+ ]),
+ true
end
def test_stylesheet_pack_tag
- assert_equal \
+ assert_equal stylesheet_pack_tag("bootstrap.css").in?([
+ %(),
+
%(),
- stylesheet_pack_tag("bootstrap.css")
+ ]), true
end
def test_stylesheet_pack_tag_symbol
- assert_equal \
+ assert_equal stylesheet_pack_tag(:bootstrap).in?([
+ %(),
+
%(),
- stylesheet_pack_tag(:bootstrap)
+ ]), true
end
def test_stylesheet_pack_tag_splat
- assert_equal \
+ assert_equal stylesheet_pack_tag("bootstrap.css", "application.css", media: "all").in?([
+ %(\n) +
+ %(),
+
%(\n) +
%(),
- stylesheet_pack_tag("bootstrap.css", "application.css", media: "all")
+ ]), true
end
end