Remove monkey patch which has been merged upstream in rails 4
Test for the map argument correctly