From be2a93525069de2dfa3c23b0c23e7a9f7ad4c03d Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 29 Dec 2024 15:14:43 +0100 Subject: First commit. --- test/controllers/home_controller_test.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/controllers/home_controller_test.rb (limited to 'test/controllers/home_controller_test.rb') 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 -- cgit v1.2.3