From cddc424279356aad1060c9dc3f3adb04396928c1 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Sun, 22 Apr 2012 20:02:01 +0200 Subject: [PATCH] Fix 1.8 errors --- spec/unit/mongoid/validations/length_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/mongoid/validations/length_spec.rb b/spec/unit/mongoid/validations/length_spec.rb index aa7bfdb337..4846c00cc6 100644 --- a/spec/unit/mongoid/validations/length_spec.rb +++ b/spec/unit/mongoid/validations/length_spec.rb @@ -11,7 +11,7 @@ context "when the field is not localized" do let(:validator) do - described_class.new(attributes: [:brand_name], in: 1..5) + described_class.new(:attributes => [:brand_name], :in => 1..5) end context "when the value is valid" do @@ -42,7 +42,7 @@ context "when the field is localized" do let(:validator) do - described_class.new(attributes: [:website], in: 1..5) + described_class.new(:attributes => [:website], :in => 1..5) end context "when the localized value is valid" do