Skip to content

Commit

Permalink
Fix 1.8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Apr 22, 2012
1 parent 6a8b5d6 commit cddc424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/mongoid/validations/length_spec.rb
Expand Up @@ -11,7 +11,7 @@
context "when the field is not localized" do context "when the field is not localized" do


let(:validator) do let(:validator) do
described_class.new(attributes: [:brand_name], in: 1..5) described_class.new(:attributes => [:brand_name], :in => 1..5)
end end


context "when the value is valid" do context "when the value is valid" do
Expand Down Expand Up @@ -42,7 +42,7 @@
context "when the field is localized" do context "when the field is localized" do


let(:validator) do let(:validator) do
described_class.new(attributes: [:website], in: 1..5) described_class.new(:attributes => [:website], :in => 1..5)
end end


context "when the localized value is valid" do context "when the localized value is valid" do
Expand Down

0 comments on commit cddc424

Please sign in to comment.