Issue #7299 has been updated by Brice Figureau.

I posted on the dev list a different fix than the one originally submitted by 
Stefan, along with another spec fix introduced by the network device patch.
Both patches are available here:
https://github.com/masterzen/puppet/tree/tickets/2.7.x/7299
----------------------------------------
Bug #7299: running rake spec should not require net/ssh
https://projects.puppetlabs.com/issues/7299

Author: Stefan Schulte
Status: Ready For Testing
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.7.0rc1
Keywords: 
Branch: https://github.com/stschulte/puppet/tree/ticket/2.7.x/7299


Running `rake spec` on current next or 2.7.0rc1 doesn't work when Net::SSH is 
not installed. Output when running rspec against the problematic specfile:

    % rspec spec/unit/util/network_device/transport/ssh_spec.rb
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      from 
/home/morpheus/git/puppet/lib/puppet/util/network_device/transport/ssh.rb:5
      from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
      from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
      from 
/home/morpheus/git/puppet/spec/unit/util/network_device/transport/ssh_spec.rb:5
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
 `load'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
 `load_spec_files'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
 `map'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
 `load_spec_files'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in
 `run'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in 
`run_in_process'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in 
`run'
      from 
/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in 
`autorun'
      from /usr/bin/rspec:8

IMO puppet should just skip these tests instead of forcing me to install 
`net/ssh`. This way it would behave like `spec/unit/network/http/rack_spec.rb` 


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to