Skip to content

Commit

Permalink
Fix decorator_spec.rb by using File#exist? instead #exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse committed Mar 6, 2024
1 parent b037876 commit c2334fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Nothing yet.
## [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))
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/rspec/templates/decorator_spec.rb
Original file line number Diff line number Diff line change
@@ -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:
#
Expand Down

0 comments on commit c2334fc

Please sign in to comment.