rewrite rspec