Permalink
Browse files

Fix naming

  • Loading branch information...
mirasrael
mirasrael committed Mar 31, 2012
1 parent 21752df commit 70dd1757f5f6b45bd6da1ad8346278b7cbe14a00
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/matchers/dsl.rb
@@ -4,9 +4,9 @@ module DSL
# Defines a custom matcher.
# @see RSpec::Matchers
def define(name, &declarations)
- template_matcher = RSpec::Matchers::DSL::Matcher.new(name, &declarations)
+ matcher_template = RSpec::Matchers::DSL::Matcher.new(name, &declarations)
define_method name do |*expected|
- matcher = template_matcher.for_expected(*expected)
+ matcher = matcher_template.for_expected(*expected)
matcher.matcher_execution_context = @matcher_execution_context || self
matcher
end

0 comments on commit 70dd175

Please sign in to comment.