My first rspec reports "undefined method `key?' for #<String:0x46b1df0>"

this my first rspec test, it is very simple

There's probably a stack trace associated with that error, try looking
in that.