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\"` 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\n\n# Run specs in random order to surface order dependencies. If you find an\n# order dependency and want to debug it, you can fix the order by providing\n# the seed, which is printed after each run.\n# --seed 1234\nconfig.order = 'random'\nend\n"
end
end
end