Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix travis issue

  • Loading branch information...
commit 9f5aa33d118c11f6577f7673a9ca9be9d6385c5a 1 parent c5c22de
@mkristian authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 .travis.yml
  2. +3 −3 spec/model_filter_spec.rb
View
4 .travis.yml
@@ -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
View
6 spec/model_filter_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.