Skip to content

Commit

Permalink
check the flash[:error] #2162
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Mar 6, 2025
1 parent 4659d60 commit 08bb34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/samples_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def rdf_test_object
get :new, params: { sample_type_id: hidden_type.id }

assert_redirected_to root_path
refute_nil flash[:error]
assert_equal 'You are not authorized to use this Sample type', flash[:error]
end

test 'create from form' do
Expand Down Expand Up @@ -97,7 +97,7 @@ def rdf_test_object
end
end
assert_redirected_to root_path
refute_nil flash[:error]
assert_equal 'You are not authorized to use this Sample type', flash[:error]
end

test 'create' do
Expand Down

0 comments on commit 08bb34b

Please sign in to comment.