Sha256: f3144a17e17ab7dba0fd4312a558f90c091bbb259e9450e3740fb758c97e9da0

Contents?: true

Size: 1006 Bytes

Versions: 69

Compression:

Stored size: 1006 Bytes

Contents

rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib"
$:.unshift rspec_lib unless $:.include?(rspec_lib)
require "test/unit"
require "spec"

module Test
  module Unit
    describe TestSuiteAdapter do
      def create_adapter(group)
        TestSuiteAdapter.new(group)
      end

      describe "#size" do
        it "should return the number of examples in the example group" do
          group = Class.new(Spec::ExampleGroup) do
            describe("some examples")
            it("bar") {}
            it("baz") {}
          end
          adapter = create_adapter(group)
          adapter.size.should == 2
        end
      end

      describe "#delete" do
        it "should do nothing" do
          group = Class.new(Spec::ExampleGroup) do
            describe("Some Examples")
            it("does something") {}
          end
          adapter = create_adapter(group)
          adapter.delete(adapter.examples.first)
          adapter.should be_empty
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 12 rubygems

Version Path
rspec-0.0.10 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.10 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.5 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.11 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.12 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.3 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.4 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.6 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.7 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.9 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
rspec-1.1.8 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.2.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.4.1 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.4.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.5.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.5.1 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.6.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.7.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.7.1 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
spree-0.8.0 vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb