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