Sha256: fc4530d3b8701bb98a162f30068a2e0d491eb7cd5be76ce59fab09195cf4a728
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 Bytes
Contents
describe Hash do it "#delete_nils" do expect({}.delete_nils).to eq({}) expect({:a => 1}.delete_nils).to eq({:a => 1}) expect({:c => nil}.delete_nils).to eq({}) expect({:a => 1, :b => [], :c => nil}.delete_nils).to eq({:a => 1, :b => []}) end it "#delete_blanks" do expect({}.delete_blanks).to eq({}) expect({:a => 1}.delete_blanks).to eq({:a => 1}) expect({:c => nil}.delete_blanks).to eq({}) expect({:a => 1, :b => [], :c => nil}.delete_blanks).to eq({:a => 1}) end end
Version data entries
5 entries across 5 versions & 1 rubygems