spec/lazier/hash_spec.rb in lazier-3.3.9 vs spec/lazier/hash_spec.rb in lazier-3.3.10

- old
+ new

@@ -15,10 +15,21 @@ before(:each) do ::Lazier.load! end + + describe "method access" do + it "it is not enabled by default" do + expect { reference.b }.to raise_error(NoMethodError) + end + end + describe "allows access to keys using dotted notation" do + before(:each) do + ::Lazier.load!(:hash_method_access) + end + it "should allow method reference for symbol key" do reference.b.f = 4 expect(reference.a).to eq(1) expect(reference.b.c).to eq(2) \ No newline at end of file