Sha256: 484e5ce654e88e290cd2d8a2bca2061101de349a865865ad089e365ca63dd42a
Contents?: true
Size: 476 Bytes
Versions: 24
Compression:
Stored size: 476 Bytes
Contents
describe Ufo::Utils::Squeezer do subject { Ufo::Utils::Squeezer.new(data) } context("Array with nil") do let(:data) { [nil] } # Prevents infinite loop it "remove nil" do squeezed = subject.squeeze expect(squeezed).to eq [] end end context("Hash with nil value") do let(:data) { {a: 1, b: nil } } # Prevents infinite loop it "remove nil" do squeezed = subject.squeeze expect(squeezed).to eq(a: 1) end end end
Version data entries
24 entries across 24 versions & 1 rubygems