spec/spec/example/example_proxy_spec.rb in rspec-1.2.2 vs spec/spec/example/example_proxy_spec.rb in rspec-1.2.3

- old
+ new

@@ -25,10 +25,20 @@ proxy = ExampleProxy.new(:ignore, {:these => :options}) proxy.options.should == {:these => :options} end end - describe "#backtrace (deprecated - use #location)" do + describe "#backtrace (DEPRECATED - use #location)" do + before(:each) do + Spec.stub!(:deprecate) + end + + it "is deprecated" do + Spec.should_receive(:deprecate) + proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37") + proxy.backtrace + end + it "provides the location of the declaration of this group" do proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37") proxy.backtrace.should == "path/to/location:37" end end