Skip to content
Browse files

Move gemfile to rails 3.2 and fix spec

  • Loading branch information...
1 parent 273a813 commit 0edc32fe7caa7baabac328d1cd09ee56510aec00 @adzap committed May 2, 2012
Showing with 19 additions and 13 deletions.
  1. +3 −2 Gemfile
  2. +13 −9 Gemfile.lock
  3. +3 −2 spec/grouped_validations_spec.rb
View
5 Gemfile
@@ -1,7 +1,8 @@
# A sample Gemfile
source "http://rubygems.org"
+gem 'rake', '~> 0.8.7'
gem 'rspec', '~> 2.0.0'
-gem 'activesupport', '~> 3.0.0'
-gem 'activemodel', '~> 3.0.0'
+gem 'activesupport', '~> 3.2.0'
+gem 'activemodel', '~> 3.2.0'
gem 'ruby-debug'
View
22 Gemfile.lock
@@ -1,16 +1,19 @@
GEM
remote: http://rubygems.org/
specs:
- activemodel (3.0.1)
- activesupport (= 3.0.1)
- builder (~> 2.1.2)
- i18n (~> 0.4.1)
- activesupport (3.0.1)
- builder (2.1.2)
+ activemodel (3.2.2)
+ activesupport (= 3.2.2)
+ builder (~> 3.0.0)
+ activesupport (3.2.2)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ builder (3.0.0)
columnize (0.3.1)
diff-lcs (1.1.2)
- i18n (0.4.2)
+ i18n (0.6.0)
linecache (0.43)
+ multi_json (1.1.0)
+ rake (0.8.7)
rspec (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
@@ -31,7 +34,8 @@ PLATFORMS
ruby
DEPENDENCIES
- activemodel (~> 3.0.0)
- activesupport (~> 3.0.0)
+ activemodel (~> 3.2.0)
+ activesupport (~> 3.2.0)
+ rake (~> 0.8.7)
rspec (~> 2.0.0)
ruby-debug
View
5 spec/grouped_validations_spec.rb
@@ -213,8 +213,9 @@
it 'should return hash of error hashes with validation groups as keys' do
errors = person.grouped_errors
- errors[:first_name_group].should == {:first_name => ["can't be blank"]}
- errors[:last_name_group].should == {:last_name => ["can't be blank"]}
+
+ errors[:first_name_group][:first_name].should eq ["can't be blank"]
+ errors[:last_name_group][:last_name].should eq ["can't be blank"]
end
it 'should return hash of errors for validations outside a validation group, for nil key' do

0 comments on commit 0edc32f

Please sign in to comment.
Something went wrong with that request. Please try again.