diff --git a/test/controllers/development_controller_test.rb b/test/controllers/development_controller_test.rb new file mode 100644 index 000000000..a669b0eb4 --- /dev/null +++ b/test/controllers/development_controller_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +class DevelopmentControllerTest < ActionController::TestCase + test "shows inde page" do + get :index + assert_response :ok + assert response.body.include?("This page is intended to be shown in development and on Heroku review apps.") + end +end diff --git a/test/test_helper.rb b/test/test_helper.rb index 8bffc5940..8980addc0 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,7 +4,11 @@ # Must go at top of file require "simplecov" -SimpleCov.start + +SimpleCov.start "rails" do + enable_coverage :branch + minimum_coverage 95 +end require "i18n/coverage" require "i18n/coverage/printers/file_printer"