Created working code for rspec tests in development.rb