Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3594

rspec deprecation warnings for v3.0.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • PUP 3.7.2
    • None
    • PMT

    Description

      When starting a new module with ``puppet module generate``, the Gemfile created doesn't specify an rspec module and the default version of rspec seems to be 3.x at this point - which generates a bunch of deprecation warnings.

      Deprecation Warnings:

      Filtering by an `:example_group` subhash is deprecated. Use the subhash to filter directly instead. Called from /usr/lib/ruby/gems/1.8/gems/rspec-puppet-1.0.1/lib/rspec-puppet/example.rb:12.
      Filtering by an `:example_group` subhash is deprecated. Use the subhash to filter directly instead. Called from /usr/lib/ruby/gems/1.8/gems/rspec-puppet-1.0.1/lib/rspec-puppet/example.rb:16.
      Filtering by an `:example_group` subhash is deprecated. Use the subhash to filter directly instead. Called from /usr/lib/ruby/gems/1.8/gems/rspec-puppet-1.0.1/lib/rspec-puppet/example.rb:20.
      Too many uses of deprecated 'Filtering by an `:example_group` subhash'. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.

      And ...

      --------------------------------------------------------------------------------
      RSpec::Puppet::ManifestMatchers::CreateGeneric implements a legacy RSpec matcher
      protocol. For the current protocol you should expose the failure messages
      via the `failure_message` and `failure_message_when_negated` methods.
      (Used from /vagrant/puppet/grails-poc/spec/classes/init_spec.rb:5)
      --------------------------------------------------------------------------------
      source 'https://rubygems.org'

      Adding

      gem 'rspec', '< 3.0.0'
      

      to the Gemfile eliminates all these warnings (after ``bundle update rspec``).

      Attachments

        Activity

          People

            anderson Anderson Mills
            bdruth Brice Ruth
            Eric Thompson Eric Thompson
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support