Skip to content

Conversation

@DLuCJ
Copy link
Contributor

@DLuCJ DLuCJ commented Jul 7, 2016

Rspec_grouper currently tries to access an array of example groups
through a private function children() in RSpec::Core::ExampleGroups
in order to calculate example counts per spec file. With the RSpec
3.5.0 release, the example groups are no longer accessible through
children(). So, rspec_grouper cannot find example groups and is
reporting that no examples can be found.

This commit uses RSpec.world.example_groups instead to access the
array.

Also, version_spec fix.

DLuCJ added 2 commits July 7, 2016 16:35
Rspec_grouper currently tries to access an array of example groups
through a private function children() in RSpec::Core::ExampleGroups
in order to calculate example counts per spec file.  With the RSpec
3.5.0 release, the example groups are no longer accessible through
children().  So, rspec_grouper cannot find example groups and is
reporting that no examples can be found.

This commit uses RSpec.world.example_groups instead to access the
array.
During work on PUP-6467, it was found that some version_spec
tests were modifying Puppet.version value globally, which was
affecting tests in integration/indirector/facts/facter_spec.rb.
Facter was incorrectly reporting a Puppet version of 1.2.3,
instead of 4.6.0 during the tests, causing failures.

This commit reverts Puppet.version to its original value after
each test in version_spec.  It also adds a context block and
new test to clarify the functionality of the version setter.
@puppetcla
Copy link

CLA signed by all contributors.

@glennsarti glennsarti merged commit 98d644e into puppetlabs:stable Jul 8, 2016
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

Successfully merging this pull request may close these issues.

3 participants