Bump representable dependency to 3.0 (#532)
Also fixes a breaking change introduced between `representable` 2.3 and 3.0. Specifically, `:skip_undefined` is now be passed via the `:user_options` option.
This commit is contained in:
1 parent
2ea7f12106
commit
4f143ae551
5 files changed
+13
-10
No files matched your search
@@ -109,7 +109,7 @@ RSpec.describe Google::Apis::Core::JsonRepresentation do
|
||||
end
|
||||
|
||||
context 'with model object' do
|
||||
let(:json) { representer_class.new(model).to_json(skip_undefined: true) }
|
||||
let(:json) { representer_class.new(model).to_json(user_options: { skip_undefined: true }) }
|
||||
let(:model) do
|
||||
model = model_class.new
|
||||
model.nil_value = nil
|
||||
@@ -132,7 +132,7 @@ RSpec.describe Google::Apis::Core::JsonRepresentation do
|
||||
end
|
||||
|
||||
context 'with hash' do
|
||||
let(:json) { representer_class.new(model).to_json(skip_undefined: true) }
|
||||
let(:json) { representer_class.new(model).to_json(user_options: { skip_undefined: true }) }
|
||||
let(:model) do
|
||||
{
|
||||
nil_value: nil,
|
||||
|
||||
Reference in new issue
Block a user