Module Spec::Example::SharedExampleGroup::ClassMethods

  1. lib/spec/example/shared_example_group.rb

Methods

public instance

  1. clear
  2. count
  3. find
  4. include?
  5. register

Public instance methods

clear ()
[show source]
# File lib/spec/example/shared_example_group.rb, line 15
        def clear
          shared_example_groups.clear
        end
count ()
[show source]
# File lib/spec/example/shared_example_group.rb, line 23
        def count
          shared_example_groups.length
        end
find (example_group_description)
[show source]
# File lib/spec/example/shared_example_group.rb, line 11
        def find(example_group_description)
          shared_example_groups.find {|b| b.description == example_group_description}
        end
include? (group)
[show source]
# File lib/spec/example/shared_example_group.rb, line 19
        def include?(group)
          shared_example_groups.include?(group)
        end
register (*args, &block)
[show source]
# File lib/spec/example/shared_example_group.rb, line 5
        def register(*args, &block)
          new_example_group = new(*args, &block)
          shared_example_groups << new_example_group unless already_registered?(new_example_group)
          new_example_group
        end