diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_install_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_install_command.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_install_command.rb b/test/rubygems/test_gem_commands_install_command.rb index ed7f72d6a5..32f6fc4237 100644 --- a/test/rubygems/test_gem_commands_install_command.rb +++ b/test/rubygems/test_gem_commands_install_command.rb @@ -809,14 +809,22 @@ ERROR: Possible alternatives: non_existent_with_hint end def test_handle_options_file + FileUtils.touch 'Gemfile' + @cmd.handle_options %w[-g Gemfile] assert_equal 'Gemfile', @cmd.options[:gemdeps] + FileUtils.rm 'Gemfile' + + FileUtils.touch 'gem.deps.rb' + @cmd.handle_options %w[--file gem.deps.rb] assert_equal 'gem.deps.rb', @cmd.options[:gemdeps] + FileUtils.rm 'gem.deps.rb' + FileUtils.touch 'Isolate' @cmd.handle_options %w[-g] |