Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Oct 29, 2024
1 parent faa938a commit 0d92bb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/functional/samples_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,10 @@ def rdf_test_object
get :new, params: { sample_type_id: sample_type.id }
assert_response :success

assert_select 'input[type=submit][disabled=disabled]', count: 1
sample_type.set_lock
get :new, params: { sample_type_id: sample_type.id }
assert_redirected_to sample_types_path(sample_type)
assert_equal flash[:error], 'This sample type is locked. You cannot edit the sample.'
end

def rdf_test_object
Expand Down

0 comments on commit 0d92bb4

Please sign in to comment.