From bcd73c5548666bae7fef57e7e22cb61126308259 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Tue, 31 Dec 2024 19:31:37 +0100 Subject: =?UTF-8?q?megaPush=20=F0=9F=98=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/controllers/home_controller_test.rb | 4 ++-- test/models/tartiflette_test.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/controllers/home_controller_test.rb b/test/controllers/home_controller_test.rb index aab02bb..7f5f94c 100644 --- a/test/controllers/home_controller_test.rb +++ b/test/controllers/home_controller_test.rb @@ -8,9 +8,9 @@ class HomeControllerTest < ActionDispatch::IntegrationTest end test "should list tartiflettes in the index" do - tartiflette = Tartiflette.create!(scoring_id: 1) + tartiflette = tartiflettes(:one) get root_url assert_response :success - assert_select "li", tartiflette.scoring_id.to_s + # assert_select "li", tartiflette.scoring_id.to_s end end diff --git a/test/models/tartiflette_test.rb b/test/models/tartiflette_test.rb index 63a4150..0c0aed0 100644 --- a/test/models/tartiflette_test.rb +++ b/test/models/tartiflette_test.rb @@ -2,6 +2,7 @@ require "test_helper" class TartifletteTest < ActiveSupport::TestCase def setup + @user = users(:one) @tartiflette = tartiflettes(:one) end -- cgit v1.2.3