lib/core/checks.rb in buildr-1.2.4 vs lib/core/checks.rb in buildr-1.2.5

- old
+ new

@@ -98,10 +98,10 @@ # - it() method to return subject, description() method to return description. # - All matchers defined by Buildr and RSpec. klass = Class.new klass.instance_eval do context.class.instance_methods(false).each do |method| - define_method(method) { |args| context.send(method, args) } + define_method(method) { |*args| context.send(method, *args) } end define_method(:it) { subject } define_method(:description) { description } include Spec::Matchers include Matchers