Skip to content

Commit

Permalink
Also test against Ruby 3.4 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles authored Jan 28, 2025
1 parent cc0475f commit 44f1b55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- '3.1'
- '3.2'
- '3.3'
- '3.4'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
8 changes: 6 additions & 2 deletions spec/general_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ def view_template

class MoreDetailsView < Phlex::HTML
def view_template
pre { helpers.params.inspect }
pre {
helpers.params.map { |key, value|
"#{key.inspect} => #{value.inspect}"
}.join(', ')
}
end
end

Expand Down Expand Up @@ -235,7 +239,7 @@ def app
it 'works' do
get '/more', { a: 1, b: 2 }

expect(last_response.body).to eql('<pre>{&quot;a&quot;=&gt;&quot;1&quot;, &quot;b&quot;=&gt;&quot;2&quot;}</pre>')
expect(last_response.body).to eql('<pre>&quot;a&quot; =&gt; &quot;1&quot;, &quot;b&quot; =&gt; &quot;2&quot;</pre>')
expect(last_response.media_type).to eql('text/html')
end
end
Expand Down

0 comments on commit 44f1b55

Please sign in to comment.