From a51eddacb7b85924f985a8f2a366f208b1e6ea0f Mon Sep 17 00:00:00 2001 From: Kamil Giszczak Date: Sat, 24 Feb 2024 10:12:54 +0100 Subject: [PATCH] Try to fix tests under Ruby 3.0 --- spec/shale/type/complex_spec/with_default_mapping_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/shale/type/complex_spec/with_default_mapping_spec.rb b/spec/shale/type/complex_spec/with_default_mapping_spec.rb index 9b6f85d..27435e6 100644 --- a/spec/shale/type/complex_spec/with_default_mapping_spec.rb +++ b/spec/shale/type/complex_spec/with_default_mapping_spec.rb @@ -313,7 +313,7 @@ class ParentCsv < Shale::Mapper end it 'accepts extra options' do - instance = mapper.from_yaml(yaml, aliases: true) + instance = mapper.from_yaml(yaml, fallback: false) expect(instance.one).to eq('foo') end end @@ -341,7 +341,7 @@ class ParentCsv < Shale::Mapper it 'accepts extra options' do instance = mapper.new(one: 'foo', two: nil) - expect(instance.to_yaml(aliases: true)).to eq("---\none: foo\n") + expect(instance.to_yaml(indentation: 2)).to eq("---\none: foo\n") end end end