Skip to content

Commit

Permalink
Merge pull request #6483 from samvera/valk-citations-ctrl
Browse files Browse the repository at this point in the history
Adapt citations controller spec for valkyrie resources
  • Loading branch information
bwatson78 authored Nov 30, 2023
2 parents 3479fe8 + 1476a79 commit 7ca54ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/hyrax/citations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
RSpec.describe Hyrax::CitationsController do
describe "#work" do
let(:user) { create(:user) }
let(:work) { create(:work, user: user) }
let(:work) { valkyrie_create(:monograph, depositor: user.user_key, edit_users: [user]) }

context "with an authenticated_user" do
before do
sign_in user
request.env['HTTP_REFERER'] = 'http://test.host/foo'
create(:sipity_entity, proxy_for_global_id: work.to_global_id.to_s)
create(:sipity_entity, proxy_for: work)
end

it "is successful" do
Expand Down Expand Up @@ -62,7 +62,7 @@
end
describe "#file" do
let(:user) { create(:user) }
let(:file_set) { create(:file_set, user: user) }
let(:file_set) { valkyrie_create(:hyrax_file_set, edit_users: [user]) }

context "with an authenticated_user" do
before do
Expand Down

0 comments on commit 7ca54ae

Please sign in to comment.