refact e rspec