Skip to content

Commit

Permalink
Try to fix tests under Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiszczak committed Feb 24, 2024
1 parent 7c787b3 commit a51edda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/shale/type/complex_spec/with_default_mapping_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a51edda

Please sign in to comment.