diff --git a/spec/features/avo/has_many_field_spec.rb b/spec/features/avo/has_many_field_spec.rb index 84a03b8c53..95551236d1 100644 --- a/spec/features/avo/has_many_field_spec.rb +++ b/spec/features/avo/has_many_field_spec.rb @@ -136,7 +136,7 @@ expect(link.link).to eq "https://google.com" expect(link.course.id).to eq course.id - visit "/admin/resources/course_links/#{link.id}/edit?via_resource_class=CourseResource&via_resource_id=#{course.id}" + visit "/admin/resources/course_links/#{link.to_param}/edit?via_resource_class=CourseResource&via_resource_id=#{course.id}" fill_in "course_link_link", with: "https://apple.com" click_on "Save" link.reload diff --git a/spec/features/avo/search_spec.rb b/spec/features/avo/search_spec.rb index 4d5bf42422..3f09a70413 100644 --- a/spec/features/avo/search_spec.rb +++ b/spec/features/avo/search_spec.rb @@ -105,7 +105,7 @@ wait_for_search_loaded wait_for_loaded - expect(current_path).to eql "/admin/resources/course_links/#{link.id}" + expect(current_path).to eql "/admin/resources/course_links/#{link.to_param}" end end end