summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/controllers/home_controller_test.rb4
-rw-r--r--test/models/tartiflette_test.rb1
2 files changed, 3 insertions, 2 deletions
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
Copyright 2019--2025 Marius PETER