Deprecation warnings fixed

double instad of mock in RSpec
Tiny Cleanup in Specs
Introducing: Rubocop
Collection: Clarification of key vs id
Collection#replace instead of Collection#[]= #31

The old method is deprecated now.
It behaves different than other `[]=` and should
therefore be named differently.