Skip to content

Commit

Permalink
Fix test by require 'set' (#508)
Browse files Browse the repository at this point in the history
There are some tests fail with messages below.

```
SSHKit::TestConfiguration
  test_nil_deprecation_output                                    ERROR (0.00s)
Minitest::UnexpectedError:         NameError: uninitialized constant SSHKit::DeprecationLogger::Set
        Did you mean?  Net
            /Users/colorbox/.ghq/github.com/capistrano/sshkit/lib/sshkit/deprecation_logger.rb:5:in `initialize'
            /Users/colorbox/.ghq/github.com/capistrano/sshkit/lib/sshkit/configuration.rb:21:in `new'
            /Users/colorbox/.ghq/github.com/capistrano/sshkit/lib/sshkit/configuration.rb:21:in `deprecation_output='
            /Users/colorbox/.ghq/github.com/capistrano/sshkit/test/unit/test_configuration.rb:25:in `test_nil_deprecation_output'
```

This PR add `require 'set'` to avoid raise NameError.
  • Loading branch information
colorbox committed Feb 1, 2023
1 parent 1897fdd commit 44e651e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sshkit/deprecation_logger.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'set'

module SSHKit
class DeprecationLogger
def initialize(out)
Expand Down

0 comments on commit 44e651e

Please sign in to comment.