lib/lemon/test/case.rb in lemon-0.8.0 vs lib/lemon/test/case.rb in lemon-0.8.1
- old
+ new
@@ -95,20 +95,20 @@
end
alias_method :metaunit, :MetaUnit
# Define a before procedure for this case.
def Before(*matches, &block)
- matches == [nil] if matches.empty?
+ matches = [nil] if matches.empty?
matches.each do |match|
@before_clauses[match] = block #<< Advice.new(match, &block)
end
end
alias_method :before, :Before
# Define an after procedure for this case.
def After(*matches, &block)
- matches == [nil] if matches.empty?
+ matches = [nil] if matches.empty?
matches.each do |match|
@after_clauses[match] = block #<< Advice.new(match, &block)
end
end