Skip to content

Commit

Permalink
Merge pull request voxpupuli#7 from nanliu/tb/specfix
Browse files Browse the repository at this point in the history
Fix spec test bug on Puppet 2.6.
  • Loading branch information
nanliu committed May 15, 2012
2 parents 96d275e + bff61a3 commit eeef8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/puppet/provider/pakages/npm_spec.rb
Expand Up @@ -39,9 +39,9 @@ def self.it_should_respond_to(*actions)
describe "when npm packages are installed globally" do
it "should return a list of npm packages installed globally" do
@provider.class.stubs(:npm).with('list', '--json', '--global').returns(my_fixture_read('npm_global'))
@provider.class.instances.map {|p| p.properties}.should == [
@provider.class.instances.map {|p| p.properties}.sort_by{|res| res[:name]}.should == [
{:ensure => '2.5.9' , :provider => 'npm', :name => 'express'},
{:ensure => '1.1.15', :provider => 'npm', :name => 'npm' },
{:ensure => '2.5.9' , :provider => 'npm', :name => 'express' },
]
end
end
Expand Down

0 comments on commit eeef8a0

Please sign in to comment.