Skip to content

Commit

Permalink
Merge pull request #744 from samvera/fix_shared_storage_adapter_spec
Browse files Browse the repository at this point in the history
Don't use ROOT_PATH in a shared spec.
  • Loading branch information
tpendragon authored May 30, 2019
2 parents 0111f84 + 7b839f6 commit 6fad02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/valkyrie/specs/shared_specs/storage_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Valkyrie::Specs::CustomResource < Valkyrie::Resource

it "can upload a file which is just an IO" do
io_file = Tempfile.new('temp_io')
io_file.write File.read(ROOT_PATH.join("spec", "fixtures", "files", "example.tif"))
io_file.write "Stuff"
io_file.rewind
sha1 = Digest::SHA1.file(io_file).to_s

Expand Down

0 comments on commit 6fad02e

Please sign in to comment.