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
dchelimsky-rspec-1.1.10 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.1 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.2 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.3 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.4 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.5 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.6 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11.7 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.11 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
dchelimsky-rspec-1.1.12 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
newbamboo-evented-rspec-1.1.12 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
newbamboo-rspec-1.1.12 spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb