test/features/new_project_test.rb in startblock-1.3 vs test/features/new_project_test.rb in startblock-1.4

- old
+ new

@@ -21,22 +21,34 @@ assert `rubocop`.match(/no offenses detected/), "Rubocop should not be offended" end end end + def test_puma_config_should_exist + assert File.exists?("#{project_path}/config/puma.rb"), "config/puma.rb should exist" + end + def test_gemfile_should_contain_certain_gems gemfile = IO.read("#{project_path}/Gemfile") assert gemfile.match(/bootstrap-sass/), "Gemfile should contain bootstrap-sass gem" assert gemfile.match(/quiet_assets/), "Gemfile should contain quiet assets gem" assert gemfile.match(/nprogress-rails/), "Gemfile should contain NProgress-rails" assert gemfile.match(/font-awesome-sass/), "Gemfile should contain font-awesome-sass" assert gemfile.match(/bootstrap_form/), "Gemfile should contain bootstrap_form" + assert gemfile.match(/puma/), "Gemfile should contain puma" + assert gemfile.match(/rails_12factor/), "Gemfile should contain rails_12factor" end def test_gemfile_should_contain_ruby_version gemfile = IO.read("#{project_path}/Gemfile") assert gemfile.match(/^ruby \".+\"$/), "Gemfile should contain a Ruby version" + end + + def test_database_yml_should_containt_staging_and_production + database_yml = IO.read("#{project_path}/config/database.yml") + assert database_yml.match(/staging/), "Database.yml should contain staging" + assert database_yml.match(/production/), "Database.yml should contain production" end def test_application_js_should_b_created app_js_file = IO.read("#{project_path}/app/assets/javascripts/application.js")