Skip to content

Commit

Permalink
Add test case for issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
tarnowsc committed May 6, 2024
1 parent cd2fa7a commit 763079a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
ruby-version:
- '3.0.6'
- '3.2'
- '3.3'
bundler-version:
- '2.2.33'
- '2.3.19'
- '2.4.14'

env:
Expand Down
15 changes: 15 additions & 0 deletions spec/bundler_override_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,19 @@ def verify_installation
["chef-utils", "= 18.2.7"],
["mixlib-config", "= 2.0.0"])
end

it "drop dependency" do
write_gemfile <<~G
#{base_gemfile}
gem 'rails-dom-testing'
override 'rails-dom-testing', drop: ['nokogiri']
G

bundle("plugin install \"bundler-override\" --local-git #{bundler_override_root}")
bundle(:update)

puts lockfile_deps_for_spec("rails-dom-testing")
expect(lockfile_deps_for_spec("rails-dom-testing")).to_not include(
["nogokiri"])
end
end

0 comments on commit 763079a

Please sign in to comment.