Skip to content

Commit

Permalink
Upgrade Ruby to 3.3.5 and add a request spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dbackeus committed Oct 23, 2024
1 parent a61f16b commit 10fe110
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.2
3.3.5
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.3.2
ARG RUBY_VERSION=3.3.5
FROM ruby:$RUBY_VERSION-slim as base

# Rails app lives here
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gem "bootsnap", require: false
gem "httpx"
gem "importmap-rails"
gem "opengraph_parser"
gem "ostruct" # to avoid deprecation warning, this gem will be removed in Ruby 3.5.0
gem "pg"
gem "propshaft"
gem "puma"
Expand Down
6 changes: 4 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ GEM
opengraph_parser (0.2.5)
addressable
nokogiri
ostruct (0.6.0)
pg (1.5.8)
propshaft (1.1.0)
actionpack (>= 7.0.0)
Expand Down Expand Up @@ -263,6 +264,7 @@ DEPENDENCIES
httpx
importmap-rails
opengraph_parser
ostruct
pg
propshaft
puma
Expand All @@ -276,7 +278,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 3.3.2p78
ruby 3.3.5p100

BUNDLED WITH
2.5.11
2.5.22
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{Rails.root}/spec/fixtures"
config.fixture_paths = ["#{Rails.root}/spec/fixtures"]

# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
Expand Down
11 changes: 11 additions & 0 deletions spec/requests/posts_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RSpec.describe "PostsController" do
describe "GET /posts" do
it "returns a successful response" do
Post.create!(title: "Title", body: "Body")

get "/posts"

expect(response).to be_successful
end
end
end

0 comments on commit 10fe110

Please sign in to comment.