spec/rspec/matchers/matcher_spec.rb in rspec-expectations-2.0.0.beta.12 vs spec/rspec/matchers/matcher_spec.rb in rspec-expectations-2.0.0.beta.13

- old
+ new

@@ -300,27 +300,27 @@ context "defined using the dsl" do def a_method_in_the_example "method defined in the example" end - it "can access methods in the running_example" do + it "can access methods in the running example" do RSpec::Matchers.define(:__access_running_example) do match do |actual| a_method_in_the_example == "method defined in the example" end end - running_example.should __access_running_example + example.should __access_running_example end it "raises NoMethodError for methods not in the running_example" do RSpec::Matchers.define(:__raise_no_method_error) do match do |actual| a_method_not_in_the_example == "method defined in the example" end end expect do - running_example.should __raise_no_method_error + example.should __raise_no_method_error end.to raise_error(/RSpec::Matchers::Matcher/) end end end