Skip to content

Commit

Permalink
#1574 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Jan 9, 2025
1 parent 2cd5441 commit 14da15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/dmsf_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def test_folder_link_to_folder
assert_select 'a', text: @link1.title, count: 1
assert_select 'a[href$=?]',
"/projects/#{@link1.target_project.identifier}/dmsf?folder_id=#{@link1.target_folder.id}",
count: 2 # Two because of folder1 and folder1_link
count: 4 # Two because of folder1 and folder1_link (2x - icon + link)
end

def test_folder_link_to_project
Expand All @@ -314,7 +314,7 @@ def test_folder_link_to_project
get "/projects/#{@link1.project_id}/dmsf", params: { folder_id: @link1.dmsf_folder_id }
assert_response :success
assert_select 'a', text: @link1.title, count: 1
assert_select 'a[href$=?]', "/projects/#{@project2.identifier}/dmsf", count: 1
assert_select 'a[href$=?]', "/projects/#{@project2.identifier}/dmsf", count: 2 # (2x - icon + link)
end

def test_new_forbidden
Expand Down

0 comments on commit 14da15a

Please sign in to comment.