Skip to content

Commit

Permalink
Merge branch 'ruby-upgrade'
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoolleyman committed Aug 9, 2019
2 parents 35d3ebd + 161a7ba commit 0d54e60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.2.5
ruby-2.5.3
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: ruby
rvm:
- 2.2.5
- 2.5.3
before_install:
- gem update --system
- gem update bundler
Expand Down
2 changes: 1 addition & 1 deletion lib/fixture_builder/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def rebuild_fixtures?
if Dir.glob("#{fixture_directory}/*.yml").blank?
puts "=> rebuilding fixtures because fixture directory #{fixture_directory} has no *.yml files"
return true
elsif !::File.exists?(fixture_builder_file)
elsif !::File.exist?(fixture_builder_file)
puts "=> rebuilding fixtures because fixture_builder config file #{fixture_builder_file} does not exist"
return true
elsif file_hashes_from_disk != file_hashes_from_config
Expand Down
2 changes: 1 addition & 1 deletion lib/fixture_builder/fixtures_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.absolute_rails_fixtures_path
rescue
if ENV["FIXTURES_PATH"]
ENV["FIXTURES_PATH"]
elsif File.exists?(File.expand_path("spec/fixtures",::Rails.root))
elsif File.exist?(File.expand_path("spec/fixtures",::Rails.root))
File.expand_path("spec/fixtures",::Rails.root)
else
File.expand_path("test/fixtures",::Rails.root)
Expand Down

0 comments on commit 0d54e60

Please sign in to comment.