spec/spec/example/example_group_spec.rb in rspec-1.1.4 vs spec/spec/example/example_group_spec.rb in rspec-1.1.5

- old
+ new

@@ -63,14 +63,15 @@ example_group.run.should be_false end end describe ExampleGroup, "#run" do - it_should_behave_like "sandboxed rspec_options" + include SandboxedOptions attr_reader :example_group, :formatter, :reporter before :each do - @formatter = mock("formatter", :null_object => true) + method_with_three_args = lambda { |arg1, arg2, arg3| } + @formatter = mock("formatter", :null_object => true, :example_pending => method_with_three_args) options.formatters << formatter options.backtrace_tweaker = mock("backtrace_tweaker", :null_object => true) @reporter = FakeReporter.new(options) options.reporter = reporter @example_group = Class.new(ExampleGroup) do @@ -231,10 +232,10 @@ end end options.examples = ["should be run"] end - it "should run only the example, when there in only one" do + it "should run only the example, when there is only one" do example_group.run examples_that_were_run.should == ["should be run"] end it "should run only the one example" do