Skip to content

Commit

Permalink
Remove Natalie tests for Data#to_h
Browse files Browse the repository at this point in the history
They have been added upstream.
  • Loading branch information
herwinw committed Oct 1, 2024
1 parent 6b662f5 commit cd62f8a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/natalie/data_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

ruby_version_is ''...'3.2' do
describe 'we need the same number of tests here to make the ruby comparison pass' do
it 'transforms the data object into a hash' do
1.should == 1
end

it 'results in a readable representation' do
1.should == 1
end
Expand All @@ -18,13 +14,6 @@
end

ruby_version_is '3.2' do
describe 'Data#to_h' do
it 'transforms the data object into a hash' do
data = DataSpecs::Measure.new(amount: 42, unit: 'km')
data.to_h.should == { amount: 42, unit: 'km' }
end
end

describe 'Data#inspect' do
it 'results in a readable representation' do
data = DataSpecs::Measure.new(amount: 42, unit: 'km')
Expand Down

0 comments on commit cd62f8a

Please sign in to comment.