Class Test::Unit::TestSuiteAdapter

  1. lib/spec/interop/test/unit/testsuite_adapter.rb
Parent: TestSuite

Methods

public class

  1. new

public instance

  1. delete
  2. empty?
  3. name
  4. run
  5. size

External Aliases

examples -> tests

Attributes

example_group [R]
examples [R]

Public class methods

new (example_group)
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 6
      def initialize(example_group)
        @example_group = example_group
        @examples = example_group.examples
      end

Public instance methods

delete (example)
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 24
      def delete(example)
        examples.delete example
      end
empty? ()
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 28
      def empty?
        examples.empty?
      end
name ()
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 11
      def name
        example_group.description
      end
run (*args)
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 15
      def run(*args)
        return true unless args.empty?
        example_group.run(Spec::Runner.options)
      end
size ()
[show source]
# File lib/spec/interop/test/unit/testsuite_adapter.rb, line 20
      def size
        example_group.number_of_examples
      end