Skip to content

Commit

Permalink
Drop Travis gem, ruby_dep gem, files gem
Browse files Browse the repository at this point in the history
This made the test suite pass on Ruby 3.3.
  • Loading branch information
olleolleolle committed Feb 8, 2024
1 parent 5d01c41 commit 2a4c51a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ gem 'rake', require: false
group :development do
gem 'bump'
gem 'mg', require: false
gem 'travis', require: false
platforms :mri, :mingw do
gem 'yard', require: false
end
Expand All @@ -29,7 +28,6 @@ group :development, :test do
gem 'coveralls'

gem 'overcommit'
gem 'ruby_dep', '1.5.0'

platforms :mri, :mingw do
gem 'pry', require: false
Expand All @@ -38,6 +36,5 @@ group :development, :test do
end

group :test do
gem 'files', require: false
gem 'git', require: false
end
24 changes: 11 additions & 13 deletions spec/lib/annotate/annotate_models_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'annotate/annotate_models'
require 'annotate/active_record_patch'
require 'active_support/core_ext/string'
require 'files'
require 'pathname'
require 'tmpdir'

describe AnnotateModels do
Expand Down Expand Up @@ -2014,18 +2014,16 @@ def mock_column(name, type, options = {})

context 'when `model_dir` is valid' do
let(:model_dir) do
Files do
file 'foo.rb'
dir 'bar' do
file 'baz.rb'
dir 'qux' do
file 'quux.rb'
end
end
dir 'concerns' do
file 'corge.rb'
end
end
dir = Pathname(Dir.mktmpdir('annotate_models'))
dir.join('bar').mkdir
dir.join('bar', 'qux').mkdir
dir.join('concerns').mkdir

dir.join('foo.rb').write('')
dir.join('bar', 'baz.rb').write('')
dir.join('bar', 'qux', 'quux.rb').write('')
dir.join('concerns', 'corge.rb').write('')
dir
end

context 'when the model files are not specified' do
Expand Down

0 comments on commit 2a4c51a

Please sign in to comment.