update rspec and fix spec according to new rspec