Skip to content

mysql_password tests fail #2

Description

@robbyt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions