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

Failure/Error: require 'voxpupuli/test/spec_helper' - TypeError: Hiera is not a class #113

Open
EmersonPrado opened this issue May 21, 2023 · 0 comments

Comments

@EmersonPrado
Copy link

I got this error trying to run tests in voxpupuli/puppet-yum module.

I just cloned puppet-yum module from GitHub master branch, then ran bundle install, then rspec. This got me several occurrencies of:

An error occurred while loading ./spec/<Unit test path>
Failure/Error: require 'voxpupuli/test/spec_helper'
TypeError:
  Hiera is not a class

My setup:

  • Kernel 5.15.0-72-generic
  • Distro/version Linux Mint 21.1 Vera
  • Ruby version: 3.0.2p107
  • Gem version: 3.3.5
  • Puppet version: 7.24.0
  • Bundler version: 2.3.5-2
  • voxpupuli-test version: 6.0.0
  • rspec version: 3.12.0
  • rspec-puppet version: 3.0.0

Did I miss any package or step, or am I using rspec command wrong?

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

1 participant