Permalink
Browse files

fix travis issue

  • Loading branch information...
1 parent c5c22de commit 9f5aa33d118c11f6577f7673a9ca9be9d6385c5a @mkristian committed Dec 29, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 .travis.yml
  2. +3 −3 spec/model_filter_spec.rb
View
@@ -1,8 +1,8 @@
language: ruby
rvm:
- 1.8.7
-# - 1.9.3
-# - 2.0.0
+ - 1.9.3
+ - 2.0.0
# - jruby-18mode # JRuby in 1.8 mode
# - jruby-19mode # JRuby in 1.9 mode
- rbx-18mode
@@ -90,7 +90,7 @@ class Person
# travis sees empty array and locally it is nil :(
result.attributes[ :phone_numbers ] ||= []
- result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
+ result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
end
it 'should serialize and deserialize with only' do
@@ -99,13 +99,13 @@ class Person
# travis sees empty array and locally it is nil :(
result.attributes[ :phone_numbers ] ||= []
- result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
+ result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
result = deserializer.from_json(json)
# travis sees empty array and locally it is nil :(
result.attributes[ :phone_numbers ] ||= []
- result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
+ result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
end
it 'should serialize and deserialize with nested only' do

0 comments on commit 9f5aa33

Please sign in to comment.