Add FactoryGirl and Shoulda gems to Gemfile. Write tests in home_controller_spec.rb file. Create factories.rb file. Create state_spec.rb file to test mass assignment.