Browse files

Merge pull request #102 from exviva/fix_warning_splat_interpreted_as_…

…argument_prefix

Fix warning in matchers/dsl.rb
  • Loading branch information...
2 parents 119e018 + 9b8aeb9 commit 43b0918cb6311fa6b86a4b909b67d199f2eede2c @dchelimsky dchelimsky committed Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/matchers/dsl.rb
View
2 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 43b0918

Please sign in to comment.