forked from rodjek/rspec-puppet
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rspec command without explicit paths runs each test twice #27
Labels
Comments
It seems the symlink does affect the issue. I replaced the symlink with a copy of the module, without rspec files, and the test count matched:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
I set up a rspec-puppet Vagrant playground to learn and train, with very basic settings, artifacts and tests. Command
rspec
runs perfectly if I give it each directory with test specs. But, If I give it a general path likespec/
, or don't specify the path, it runs each test twice.Expected Behavior
The "examples" count at the end should match the exact count of test definitions
Steps to Reproduce
spec/spec_helper.rb
spec/classes/init_spec.rb
spec/defines/rspec_test__type_spec.rb
Directory structure
Environment
Additional Context
I kinda suspect the module symlink has something to do with it, because it makes
spec_helper.rb
appear recursively. But this would be strange, because:I didn't set up Rake because I want to understand bare Rspec-Puppet first.
Thanks,
Emerson
The text was updated successfully, but these errors were encountered: