Sha256: 1ca2bdb5ac3bda25d3c34ef25b463ded0874fe24397acc6597ff41a670a0f6b2

Contents?: true

Size: 638 Bytes

Versions: 60

Compression:

Stored size: 638 Bytes

Contents

module Test
  module Unit
    class TestSuiteAdapter < TestSuite
      attr_reader :example_group, :examples
      alias_method :tests, :examples
      def initialize(example_group)
        @example_group = example_group
        @examples = example_group.examples
      end

      def name
        example_group.description
      end

      def run(*args)
        return true unless args.empty?
        example_group.run
      end

      def size
        example_group.number_of_examples
      end

      def delete(example)
        examples.delete example
      end

      def empty?
        examples.empty?
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 10 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/interop/test/unit/testsuite_adapter.rb
dchelimsky-rspec-1.1.11.1 lib/spec/interop/test/unit/testsuite_adapter.rb
dchelimsky-rspec-1.1.11 lib/spec/interop/test/unit/testsuite_adapter.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb