Nested shared behaviours not scoped
Reported by Ashley Moran | March 31st, 2008 @ 06:42 PM | in No-Milestone-Assigned
As of SVN rev 3333, if you share nested behaviours, like this:
describe Something do
describe "basic mode", :shared => true do
- ...
end
end
describe SomethingElse do
describe "basic mode", :shared => true do
- ...
end
end
then the shared behaviours clash.
Here is a sample error message
/home/amoran/Documents/becta/apps/Backend/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb:29:in `guard_against_redefining_existing_example_group': Shared Example 'basic mode' already exists (ArgumentError)
from /home/amoran/Documents/becta/apps/Backend/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb:6:in `add_shared_example_group'
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
