def create_spec_helper_file
if File.exist?('spec/spec_helper.rb')
report_exists("spec/spec_helper.rb")
else
report_creating("spec/spec_helper.rb")
FileUtils.mkdir_p('spec')
File.open('spec/spec_helper.rb','w') do |f|
f.write "# This file was generated by the `rspec --init` command. Conventionally, all\n# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.\n# Require this file using `require \"spec_helper.rb\"` to ensure that it is only\n# loaded once.\n#\n# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration\nRSpec.configure do |config|\nconfig.treat_symbols_as_metadata_keys_with_true_values = true\nconfig.run_all_when_everything_filtered = true\nconfig.filter_run :focus\nend\n"
end
end
end