method
already_registered?
already_registered?(new_example_group)
private
Hide source
# File lib/spec/example/shared_example_group.rb, line 33 def already_registered?(new_example_group) existing_example_group = find(new_example_group.description) return false unless existing_example_group return true if new_example_group.equal?(existing_example_group) return true if expanded_path(new_example_group) == expanded_path(existing_example_group) raise ArgumentError.new("Shared Example '#{existing_example_group.description}' already exists") end