You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 5.1.0
Ruby: 2.3.4p301
Distribution: [running tests on Mac OS X]
Module version: current git master
How to reproduce (e.g Puppet code you use)
bundle install bundle exec rake test
What are you seeing
test failures [see below]. Tests don't appear to fail in Travis. Additionally, is the text "and install_options is a string" correct when it appears to be an array with a single string as the content? (['--verbose'])?
What behaviour did you expect instead
tests to pass
Output log
1) Puppet::Type::Package::ProviderNpm when installing npm packages and install_options is a string passes the install_options to npm
Failure/Error: npm('install', *options, package)
Mocha::ExpectationError:
unexpected invocation: Package[express](provider=npm).npm("install", "--global", "express")
unsatisfied expectations:
- expected exactly once, not yet invoked: Package[express](provider=npm).npm("install", "--global", "--verbose", "express")
satisfied expectations:
- allowed any number of times, not yet invoked: #<Puppet::Util::Feature:0x7faf8f99fd18>.root?(any_parameters)
- allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderNpm.command(:npm)
- allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderNpm.optional_commands(:npm)
# ./lib/puppet/provider/package/npm.rb:76:in `install'
# ./spec/unit/puppet/provider/package/npm_spec.rb:46:in `block (4 levels) in <top (required)>'
2) Puppet::Type::Package::ProviderNpm when installing npm packages and install_options is a hash passes the install_options to npm
Failure/Error: npm('install', *options, package)
Mocha::ExpectationError:
unexpected invocation: Package[express](provider=npm).npm("install", "--global", "express")
unsatisfied expectations:
- expected exactly once, not yet invoked: Package[express](provider=npm).npm("install", "--global", "--loglevel=error", "express")
satisfied expectations:
- allowed any number of times, not yet invoked: #<Puppet::Util::Feature:0x7faf8f99fd18>.root?(any_parameters)
- allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderNpm.command(:npm)
- allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderNpm.optional_commands(:npm)
# ./lib/puppet/provider/package/npm.rb:76:in `install'
# ./spec/unit/puppet/provider/package/npm_spec.rb:54:in `block (4 levels) in <top (required)>'
Finished in 0.43004 seconds (files took 7.12 seconds to load)
13 examples, 2 failures
The text was updated successfully, but these errors were encountered:
I'm unable to reproduce this with ruby2.4.1 on archlinux. does it fail for you if you do bundle exec rake spec? This would do it sequentially, the test task does it in parallel
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
bundle installbundle exec rake testWhat are you seeing
test failures [see below]. Tests don't appear to fail in Travis. Additionally, is the text "and install_options is a string" correct when it appears to be an array with a single string as the content? (
['--verbose'])?What behaviour did you expect instead
tests to pass
Output log
The text was updated successfully, but these errors were encountered: