aufi (Marek Aufart)
- Login: aufi
- Registered on: 10/19/2015
- Last sign in: 06/23/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/10/2015
-
03:39 PM Ruby Bug #11802: Hash.new and {} have different behaviour
- It looks like a block, but:
irb(main):001:0> {}.class
=> Hash
irb(main):002:0> {}
=> {} -
03:26 PM Ruby Bug #11802 (Rejected): Hash.new and {} have different behaviour
- It looks that {} is not recognized as a variable sometimes.
irb(main):001:0> p Hash.new
{}
=> {}
irb(main):002:0> p {}
=> nil
Similar in rspec test:
expect(subject.something).to eq {} # fails on not given argument for eq
ex...