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

mysql_password tests fail #2

Open
robbyt opened this issue Feb 20, 2014 · 0 comments
Open

mysql_password tests fail #2

robbyt opened this issue Feb 20, 2014 · 0 comments

Comments

@robbyt
Copy link

robbyt commented Feb 20, 2014

Using:

*** LOCAL GEMS ***

minitest (2.5.1)
mocha (1.0.0)
puppet (3.4.3)
puppetlabs_spec_helper (0.4.1)
rake (0.9.2.2)
rspec (2.14.1)
rspec-core (2.14.7)
rspec-expectations (2.14.5)
rspec-mocks (2.14.6)
rspec-puppet (1.0.1)

I get the following spec errors:

/opt/local/bin/ruby1.9 -S rspec spec/classes/example_spec.rb spec/functions/mysql_password_spec.rb --color
....FF

Failures:

  1) mysql_password should throw an error on invalid types
     Failure/Error: lambda {
       expected Puppet::ParseError, got #<NameError: uninitialized constant PuppetlabsSpec> with backtrace:
         # ./spec/functions/mysql_password_spec.rb:5:in `block (2 levels) in <top (required)>'
         # ./spec/functions/mysql_password_spec.rb:13:in `block (3 levels) in <top (required)>'
         # ./spec/functions/mysql_password_spec.rb:12:in `block (2 levels) in <top (required)>'
     # ./spec/functions/mysql_password_spec.rb:12:in `block (2 levels) in <top (required)>'

  2) mysql_password should convert a password to a hash
     Failure/Error: let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
     NameError:
       uninitialized constant PuppetlabsSpec
     # ./spec/functions/mysql_password_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/functions/mysql_password_spec.rb:19:in `block (2 levels) in <top (required)>'

Finished in 0.15866 seconds
6 examples, 2 failures

Failed examples:

rspec ./spec/functions/mysql_password_spec.rb:11 # mysql_password should throw an error on invalid types
rspec ./spec/functions/mysql_password_spec.rb:17 # mysql_password should convert a password to a hash
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