competition crud rspec refactored