Joseph Jones liked your message with Boxer. On December 10, 2015 at 08:26:40 MST, aufi.cz@gmail.com wrote:Issue #11802 has been reported by Marek Aufart.----------------------------------------Bug #11802: Hash.new and {} have different behaviourhttps://bugs.ruby-lang.org/issues/11802* Author: Marek Aufart* Status: Open* Priority: Normal* Assignee: * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN----------------------------------------It looks that {} is not recognized as a variable sometimes.irb(main):001:0> p Hash.new{}=> {}irb(main):002:0> p {}=> nilSimilar in rspec test:expect(subject.something).to eq {} # fails on not given argument for eqexpect(subject.something).to eq({}) # works-- https://bugs.ruby-lang.org/