Refact rspec.