Skip to content

Commit 44f1b55

Browse files
authored
Also test against Ruby 3.4 (#7)
1 parent cc0475f commit 44f1b55

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- '3.1'
1515
- '3.2'
1616
- '3.3'
17+
- '3.4'
1718
steps:
1819
- uses: actions/checkout@v3
1920
- uses: ruby/setup-ruby@v1

spec/general_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ def view_template
2222

2323
class MoreDetailsView < Phlex::HTML
2424
def view_template
25-
pre { helpers.params.inspect }
25+
pre {
26+
helpers.params.map { |key, value|
27+
"#{key.inspect} => #{value.inspect}"
28+
}.join(', ')
29+
}
2630
end
2731
end
2832

@@ -235,7 +239,7 @@ def app
235239
it 'works' do
236240
get '/more', { a: 1, b: 2 }
237241

238-
expect(last_response.body).to eql('<pre>{&quot;a&quot;=&gt;&quot;1&quot;, &quot;b&quot;=&gt;&quot;2&quot;}</pre>')
242+
expect(last_response.body).to eql('<pre>&quot;a&quot; =&gt; &quot;1&quot;, &quot;b&quot; =&gt; &quot;2&quot;</pre>')
239243
expect(last_response.media_type).to eql('text/html')
240244
end
241245
end

0 commit comments

Comments
 (0)