spec/lazier/hash_spec.rb in lazier-3.5.1 vs spec/lazier/hash_spec.rb in lazier-3.5.2
- old
+ new
@@ -4,11 +4,11 @@
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#
require "spec_helper"
-describe Lazier::Hash do
+describe Object do
subject {
rv = {a: 1, "b" => {c: 2, d: {"e" => 3}}}
rv.default = 0
rv
}
@@ -41,10 +41,10 @@
it "should remove blank keys" do
expect({a: 1, b: nil}.compact).to eq({a: 1})
end
it "should use a custom validator" do
- expect({a: 1, b: nil, c: 3}.compact {|k, v| v == 1 || k == :c}).to eq({b: nil})
+ expect({a: 1, b: nil, c: 3}.compact{|k, v| v == 1 || k == :c}).to eq({b: nil})
end
it "should not be destructive" do
subject = {a: 1, b: nil}
subject.compact
\ No newline at end of file