Cannot use complex expressions like hash['foo'] += 1
with hyper-spec
#127
Labels
bug
Something isn't working
hash['foo'] += 1
with hyper-spec
#127
This is due to an issue in the current unparser gem: mbj/unparser#117
You may get an error like this when running a spec:
The problem is the unparser incorrectly generates
hash.[]("foo") += 1
instead ofhash['foo'] += 1
.The good news its pretty easy to find such expressions and replace them with something like
hash["foo"] = hash["foo"] + 1
The text was updated successfully, but these errors were encountered: