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

rspec deprecation warnings for v3.0.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.7.2
    • Fix Version/s: None
    • Component/s: PMT
    • Labels:
    • Template:

      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support