Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require 'net/ntlm/version' in spec/lib/net/ntlm/version_spec.rb #12

Closed
movitto opened this issue May 8, 2014 · 1 comment
Closed

require 'net/ntlm/version' in spec/lib/net/ntlm/version_spec.rb #12

movitto opened this issue May 8, 2014 · 1 comment

Comments

@movitto
Copy link

movitto commented May 8, 2014

Greetings, when I try to run this spec in the subject either via 'rake spec' or via rspec manually, I get the following error:

rubyntlm-0.4.0]$ rake spec
<snip>
No DRb server is running. Running in local process instead ...
/home/mmorsi/workspace/fedora/rubygem-rubyntlm/rubyntlm-0.4.0/spec/lib/net/ntlm/version_spec.rb:3:in `<top (required)>': uninitialized constant Net::NTLM::VERSION (NameError)
    from /home/mmorsi/.gem/ruby/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load'
<snip>

I noticed no include for 'net/ntlm/version' in lib/net/ntlm.rb. When I add this require to the file, everything works as intended.

Thank you for your time.

@sneal
Copy link
Member

sneal commented Jan 7, 2015

Fixed by #17, although you should be using Bundler to execute the specs.

Oddly it works without the additional require when running through bundler bundle install && bundle exec rake. Bundler must somehow end up changing the execution context and requiring the version file.

@sneal sneal closed this as completed Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants