Skip to content

Commit 988ec73

Browse files
committed
Fixed wrong assert_select syntax
1 parent f9d5f69 commit 988ec73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/controllers/curator_controller_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ class CuratorControllerTest < ActionController::TestCase
185185
end
186186

187187
[event, material, workflow, collection, provider, source].each do |resource|
188-
assert_select '.curate-user a[href=?]', @controller.polymorphic_path(resource), "#{@controller.polymorphic_path(resource)} not found!, \nBody:\n#{response.body}"
188+
assert_select '.curate-user a[href=?]', @controller.polymorphic_path(resource), { text: resource.title },
189+
"#{@controller.polymorphic_path(resource)} not found!, \nBody:\n#{response.body}"
189190
end
190191
end
191192

0 commit comments

Comments
 (0)