summaryrefslogtreecommitdiff
path: root/test/controllers/home_controller_test.rb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
commitbe2a93525069de2dfa3c23b0c23e7a9f7ad4c03d (patch)
treeb5493e9d35d024ce7be072ec2168b4a98ba0e63f /test/controllers/home_controller_test.rb
First commit.
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