Skip to content

Commit

Permalink
Merge pull request #156 from juniorsysadmin/sudo-off
Browse files Browse the repository at this point in the history
Fix failing provider RSpec test when running on docker
  • Loading branch information
igalic committed Jul 30, 2015
2 parents b8ce263 + 774bafe commit b9d2528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sudo: true
sudo: false
language: ruby
bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
Expand Down
1 change: 1 addition & 0 deletions spec/unit/puppet/provider/package/npm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def self.it_should_respond_to(*actions)

it "should log and return no packages if JSON isn't output" do
@provider.class.expects(:execute).with(['/usr/local/bin/npm', 'list', '--json', '--global'], anything).returns("failure!")
Process::Status.any_instance.expects(:success?).returns(true)
Puppet.expects(:debug).with(regexp_matches(/npm list.*failure!/))
expect(@provider.class.instances).to eq([])
end
Expand Down

0 comments on commit b9d2528

Please sign in to comment.