Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix travis issue

  • Loading branch information...
commit 9f5aa33d118c11f6577f7673a9ca9be9d6385c5a 1 parent c5c22de
Christian Meier authored

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +2 2 .travis.yml
  2. +3 3 spec/model_filter_spec.rb
4 .travis.yml
... ... @@ -1,8 +1,8 @@
1 1 language: ruby
2 2 rvm:
3 3 - 1.8.7
4   -# - 1.9.3
5   -# - 2.0.0
  4 + - 1.9.3
  5 + - 2.0.0
6 6 # - jruby-18mode # JRuby in 1.8 mode
7 7 # - jruby-19mode # JRuby in 1.9 mode
8 8 - rbx-18mode
6 spec/model_filter_spec.rb
@@ -90,7 +90,7 @@ class Person
90 90
91 91 # travis sees empty array and locally it is nil :(
92 92 result.attributes[ :phone_numbers ] ||= []
93   - result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
  93 + result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
94 94 end
95 95
96 96 it 'should serialize and deserialize with only' do
@@ -99,13 +99,13 @@ class Person
99 99
100 100 # travis sees empty array and locally it is nil :(
101 101 result.attributes[ :phone_numbers ] ||= []
102   - result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
  102 + result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
103 103
104 104 result = deserializer.from_json(json)
105 105
106 106 # travis sees empty array and locally it is nil :(
107 107 result.attributes[ :phone_numbers ] ||= []
108   - result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>nil, :id => nil]
  108 + result.attributes.must_equal Hash[:name => person['name'], :address=>nil, :phone_numbers=>[], :id => nil]
109 109 end
110 110
111 111 it 'should serialize and deserialize with nested only' do

0 comments on commit 9f5aa33

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