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``).