diff --git a/CHANGELOG.md b/CHANGELOG.md index 75ebb36..d880455 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.3.0] - 2023-11-06 ### Added - Add Rails 7.1 support ([#49](https://github.com/komposable/dekorator/pull/49)) +### Fixes +- Fix RSpec `decorator_spec.rb` template by using `File#exist?` instead `File#exists?` ([#51](https://github.com/komposable/dekorator/pull/51)) ### Removed - Add Rails 7.0 on CI tests via Appraisals ([#47](https://github.com/komposable/dekorator/pull/47)) - Drop Ruby 2.5 and 2.6 support ([#47](https://github.com/komposable/dekorator/pull/47)) diff --git a/lib/generators/rspec/templates/decorator_spec.rb b/lib/generators/rspec/templates/decorator_spec.rb index 82a2a45..49bd3b1 100644 --- a/lib/generators/rspec/templates/decorator_spec.rb +++ b/lib/generators/rspec/templates/decorator_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require '<%= File.exists?("spec/rails_helper.rb") ? "rails_helper" : "spec_helper" %>' +require '<%= File.exist?("spec/rails_helper.rb") ? "rails_helper" : "spec_helper" %>' # Example: #