Skip to content

Commit

Permalink
link prefix id
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 28, 2023
1 parent d476212 commit 8af7534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/features/avo/has_many_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/features/avo/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8af7534

Please sign in to comment.