Skip to content
This repository
Browse code

Fix warning in matchers/dsl.rb

lib/rspec/matchers/dsl.rb:10: warning: `*' interpreted as argument prefix
  • Loading branch information...
commit 9b8aeb9169e50270cb0a0d7f77c0a70dab143262 1 parent 119e018
Olek Janiszewski authored January 04, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rspec/matchers/dsl.rb
2  lib/rspec/matchers/dsl.rb
@@ -7,7 +7,7 @@ def define(name, &declarations)
7 7
         matcher = RSpec::Matchers::Matcher.new(name, &declarations)
8 8
         define_method name do |*expected|
9 9
           $matcher_execution_context = self
10  
-          matcher.for_expected *expected
  10
+          matcher.for_expected(*expected)
11 11
         end
12 12
       end
13 13
 

0 notes on commit 9b8aeb9

Please sign in to comment.
Something went wrong with that request. Please try again.