From f8257434919525f4670febd5b787fb884d60785f Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sat, 25 Apr 2015 20:11:05 +0200 Subject: [PATCH] Fix for raise ArgumentError --- lib/rubella/weighting/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rubella/weighting/base.rb b/lib/rubella/weighting/base.rb index 6bfa731..7f26cd0 100644 --- a/lib/rubella/weighting/base.rb +++ b/lib/rubella/weighting/base.rb @@ -32,7 +32,8 @@ module Rubella def buckets= buckets # Must be divideable by 100 if([1, 2, 5, 10, 20, 50].index(buckets) == nil) - raise ArgumentError, "Amount of buckets must be 1, 2, 5, 10, 20 or 50" + raise ArgumentError.new "Amount of buckets must be 1, 2, 5, 10, 20 "+ + "or 50" end @steps = 100/buckets