summaryrefslogtreecommitdiff
path: root/test/controllers/scores_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/scores_controller_test.rb')
-rw-r--r--test/controllers/scores_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/scores_controller_test.rb b/test/controllers/scores_controller_test.rb
index 6a6bc9a..244c07c 100644
--- a/test/controllers/scores_controller_test.rb
+++ b/test/controllers/scores_controller_test.rb
@@ -11,7 +11,7 @@ class ScoresControllerTest < ActionDispatch::IntegrationTest
get new_tartiflette_score_path(@tartiflette)
assert_response :success
assert_select "form"
- assert_select "select[name=?]", "scores[#{@criterium.id}][value]"
+ assert_select "input[type=number][name=?]", "scores[#{@criterium.id}][value]"
end
test "should not create scores with invalid data" do
@@ -27,7 +27,7 @@ class ScoresControllerTest < ActionDispatch::IntegrationTest
get tartiflette_edit_scores_path(@tartiflette)
assert_response :success
assert_select "form"
- assert_select "select[name=?]", "scores[#{@criterium.id}][value]"
+ assert_select "input[type=number][name=?]", "scores[#{@criterium.id}][value]"
end
test "should update scores for tartiflette" do
Copyright 2019--2025 Marius PETER