Fix Ruby 2 hash usage in spec