Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Sep 6, 2023
1 parent 25583fa commit 97f979f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/valkyrie/specs/shared_specs/storage_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Valkyrie::Specs::CustomResource < Valkyrie::Resource
it { is_expected.to respond_to(:upload).with_keywords(:file, :resource, :original_filename) }
it { is_expected.to respond_to(:supports?) }

it "returns false for non-existing features" do
expect(storage_adapter.supports?(:bad_feature_not_real_dont_implement)).to eq false
end

it "can upload a file which is just an IO" do
io_file = Tempfile.new('temp_io')
io_file.write "Stuff"
Expand Down
4 changes: 0 additions & 4 deletions lib/valkyrie/storage/versioned_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ def versioned?
string_id.include?("v-")
end

def file_root
string_id.split("v-").first
end

def version
string_id.split("v-").last.split("-", 2).first
end
Expand Down

0 comments on commit 97f979f

Please sign in to comment.