diff --git a/.ruby-version b/.ruby-version index 4772543..fa7adc7 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.2 +3.3.5 diff --git a/Dockerfile b/Dockerfile index 28b5ace..d5a5097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Gemfile b/Gemfile index 8dafecf..b60a0ab 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/Gemfile.lock b/Gemfile.lock index 4d404fe..edac712 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -263,6 +264,7 @@ DEPENDENCIES httpx importmap-rails opengraph_parser + ostruct pg propshaft puma @@ -276,7 +278,7 @@ DEPENDENCIES webmock RUBY VERSION - ruby 3.3.2p78 + ruby 3.3.5p100 BUNDLED WITH - 2.5.11 + 2.5.22 diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 7767ce3..b4b614d 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -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 diff --git a/spec/requests/posts_controller_spec.rb b/spec/requests/posts_controller_spec.rb new file mode 100644 index 0000000..e9aa8b8 --- /dev/null +++ b/spec/requests/posts_controller_spec.rb @@ -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