Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix naming

  • Loading branch information...
commit 70dd1757f5f6b45bd6da1ad8346278b7cbe14a00 1 parent 21752df
mirasrael authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/matchers/dsl.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.