summaryrefslogtreecommitdiff
path: root/test/controllers/home_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/home_controller_test.rb')
-rw-r--r--test/controllers/home_controller_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/controllers/home_controller_test.rb b/test/controllers/home_controller_test.rb
new file mode 100644
index 0000000..aab02bb
--- /dev/null
+++ b/test/controllers/home_controller_test.rb
@@ -0,0 +1,16 @@
+require "test_helper"
+
+class HomeControllerTest < ActionDispatch::IntegrationTest
+ test "should get index" do
+ get root_url
+ assert_response :success
+ assert_select "h1", "World Tartiflette Tour 2024"
+ end
+
+ test "should list tartiflettes in the index" do
+ tartiflette = Tartiflette.create!(scoring_id: 1)
+ get root_url
+ assert_response :success
+ assert_select "li", tartiflette.scoring_id.to_s
+ end
+end
Copyright 2019--2025 Marius PETER