rspec-core: Shared examples throwing exception on load if required in multiple spec files (2.0.0.beta.8)
/Library/Ruby/Gems/1.8/gems/rspec-core-2.0.0.beta.8/lib/rspec/core/shared_example_group.rb:33:in `ensure_shared_example_group_name_not_taken’: Shared example group ‘Some group’ already exists (ArgumentError)
This only occurs if running multiple specs where the file is required.
About this issue
- Original URL
- State: closed
- Created 14 years ago
- Comments: 20 (7 by maintainers)
Just wanted to pop in and say removing “_spec” from the shared group file removed this error for me. I was not seeing an exception, only a console warning but figured posting here might help others that wander in from a Google search.