Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Fixing BrowseEverything uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Jan 26, 2017
1 parent db79db1 commit 5ed215b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def decorator
end

def selected_files_params
params[:selected_files].to_h
params[:selected_files].to_unsafe_h
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
end

describe "#browse_everything_files" do
around { |example| perform_enqueued_jobs(&example) }
let(:resource) { FactoryGirl.create(:multi_volume_work, user: user) }
let(:file) { File.open(Rails.root.join("spec", "fixtures", "files", "color.tif")) }
let(:user) { FactoryGirl.create(:admin) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@
sign_in user
allow(CharacterizeJob).to receive(:perform_later)
end
around { |example| perform_enqueued_jobs(&example) }
it "appends a new file set" do
post :browse_everything_files, params: { id: resource.id, selected_files: params["selected_files"] }
reloaded = resource.reload
Expand Down

0 comments on commit 5ed215b

Please sign in to comment.