Permalink
Browse files

change running_example to example

  • Loading branch information...
1 parent 0cdd882 commit d0ee052d10d701cf7f5f35c81476fe43ee648502 @dchelimsky dchelimsky committed Jun 18, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/rspec/matchers/matcher_spec.rb
View
6 spec/rspec/matchers/matcher_spec.rb
@@ -302,13 +302,13 @@ 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
@@ -319,7 +319,7 @@ def a_method_in_the_example
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

0 comments on commit d0ee052

Please sign in to comment.