Sha256: 87fc5561c3ff26cc94b43f322692207aa5a00d4aaf31303c995d4dd8a3f78c32
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
require "spec_helper" describe Timber::Macros::Compactor do describe ".compact" do let(:hash) { {} } subject { described_class.compact(hash) } it { should eq({}) } context "nested" do let(:hash) { {:whatever => {:nested => nil}} } it { should eq({}) } end context "nested with other values" do let(:hash) { {:whatever => {:nested => nil, :with_val => 1}, :another => 1} } it { should eq({:whatever => {:with_val => 1}, :another => 1}) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | spec/timber/macros/compactor_spec.rb |