# File lib/spec/example/shared_example_group.rb, line 15
15: def clear
16: shared_example_groups.clear
17: end
# File lib/spec/example/shared_example_group.rb, line 23
23: def count
24: shared_example_groups.length
25: end
# File lib/spec/example/shared_example_group.rb, line 11
11: def find(example_group_description)
12: shared_example_groups.find {|b| b.description == example_group_description}
13: end
# File lib/spec/example/shared_example_group.rb, line 33
33: def already_registered?(new_example_group)
34: existing_example_group = find(new_example_group.description)
35: return false unless existing_example_group
36: return true if new_example_group.equal?(existing_example_group)
37: return true if expanded_path(new_example_group) == expanded_path(existing_example_group)
38: raise ArgumentError.new("Shared Example '#{existing_example_group.description}' already exists")
39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.