Skip to content

Commit 6087e02

Browse files
committed
chore(ci): add ruby 4.0 to the matrix
1 parent 4572fcf commit 6087e02

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
ruby: ["3.5.0-preview1", "3.4", "3.3", "3.2", "3.1", "3.0", "2.7"]
10-
rails: ["8.0", "7.2", "7.1", "6.1"]
9+
ruby: ["4.0", "3.4", "3.3", "3.2", "3.1", "3.0", "2.7"]
10+
rails: ["8.1", "8.0", "7.2", "7.1", "6.1"]
1111
exclude:
1212
- rails: "6.1"
1313
ruby: "3.4"
1414

1515
- rails: "6.1"
16-
ruby: "3.5.0-preview1"
16+
ruby: "4.0"
1717

1818
- rails: "7.2"
1919
ruby: "2.7"

spec/encapsulated_helper_spec.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818
context "inside a view" do
1919
it "works inside ERB" do
2020
require "erb"
21-
template = ERB.new(<<-ERB.split(/\s+/s).map(&:strip).join(" "), nil, "%")
22-
foo <% context_shim.ab_test(:foo, '1', '2') do |alt, meta| %>
23-
static <%= alt %>
24-
<% end %>
21+
22+
html = <<-ERB.split(/\s+/s).map(&:strip).join(" ")
23+
foo <% context_shim.ab_test(:foo, '1', '2') do |alt, meta| %>
24+
static <%= alt %>
25+
<% end %>
2526
ERB
27+
28+
template = ERB.new(html, trim_mode: '%')
29+
2630
expect(template.result(binding)).to match(/foo static \d/)
2731
end
2832
end

0 commit comments

Comments
 (0)