Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
fix setup for spec which tests the selection menu for files in a coll…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
pgwillia committed Oct 16, 2015
1 parent 178007a commit 6f5cafc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions spec/features/collection/collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,15 @@
end

describe 'check collection for drop down menu options' do
let!(:collection_modify) do
Collection.create( title: 'Test Collection') do |c|
c.apply_depositor_metadata(admin.user_key)
end
end
let!(:generic_file) do
GenericFile.create( title: ['Test Item'], read_groups: ['public'] ) do |g|
g.apply_depositor_metadata(admin.user_key)
end
end
let!(:collection_modify) do
Collection.create( title: 'Test Collection', members: [generic_file] ) do |c|
c.apply_depositor_metadata(admin.user_key)
g.hasCollectionId = [collection_modify.id]
end
end

Expand All @@ -204,6 +205,7 @@
end

it "should not see edit and delete options" do
expect(page).to have_content(generic_file.title.first)
click_button("Select an action")

expect(page).to have_content("Test Item")
Expand Down

0 comments on commit 6f5cafc

Please sign in to comment.