Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test failure when version is exactly 3.2 #4106

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/rubygems/test_gem_commands_update_command.rb
Expand Up @@ -198,13 +198,13 @@ def test_execute_system_specific_older_than_3_2_removes_plugins_dir

def test_execute_system_specific_newer_than_or_equal_to_3_2_leaves_plugins_dir_alone
spec_fetcher do |fetcher|
fetcher.download 'rubygems-update', 3.2 do |s|
fetcher.download 'rubygems-update', "3.2.a" do |s|
s.files = %w[setup.rb]
end
end

@cmd.options[:args] = []
@cmd.options[:system] = "3.2"
@cmd.options[:system] = "3.2.a"

FileUtils.mkdir_p Gem.plugindir
plugin_file = File.join(Gem.plugindir, 'a_plugin.rb')
Expand Down