Permalink
Browse files

Fix warning in matchers/dsl.rb

lib/rspec/matchers/dsl.rb:10: warning: `*' interpreted as argument prefix
  • Loading branch information...
1 parent 119e018 commit 9b8aeb9169e50270cb0a0d7f77c0a70dab143262 @exviva exviva committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/matchers/dsl.rb
@@ -7,7 +7,7 @@ def define(name, &declarations)
matcher = RSpec::Matchers::Matcher.new(name, &declarations)
define_method name do |*expected|
$matcher_execution_context = self
- matcher.for_expected *expected
+ matcher.for_expected(*expected)
end
end

0 comments on commit 9b8aeb9

Please sign in to comment.