rspec improvement