Skip to content

Commit

Permalink
Valkyrization: Fix failing tests in users_spec.rb (#6491)
Browse files Browse the repository at this point in the history
* Edit users_spec.rb

* Edit users_spec.rb
  • Loading branch information
abelemlih authored Dec 1, 2023
1 parent 559dd91 commit 2c7aff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:profile_path) { Hyrax::Engine.routes.url_helpers.user_path(user, locale: 'en') }

context 'when visiting user profile with highlighted works' do
let(:work) { create(:work, user: user) }
let(:work) { valkyrie_create(:monograph, title: 'Test Monograph 123', depositor: user.user_key) }

before do
user.trophies.create!(work_id: work.id)
Expand All @@ -18,7 +18,7 @@
expect(page).to have_content(user.email)

within '.highlighted-works' do
expect(page).to have_link(work.to_s)
expect(page).to have_link('Test Monograph 123', href: "/concern/monographs/#{work.id}?locale=en")
end

within '.panel-user' do
Expand Down

0 comments on commit 2c7aff4

Please sign in to comment.