Sha256: 783d649ceedcbe6b32c8167bdce214b7fc9b51f46f95cea9ef2f129c129b307d

Contents?: true

Size: 379 Bytes

Versions: 10

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

describe Hyrax::WorkingDirectory do
  let(:path1) { described_class.send(:full_filename, 'abcdefghijklmnop1', 'foo.tif') }
  let(:path2) { described_class.send(:full_filename, 'abcdefghijklmnop2', 'foo.tif') }

  describe "#full_filename" do
    it "generates unique filenames for different files" do
      expect(path1).not_to eq(path2)
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/services/hyrax/working_directory_spec.rb
hyrax-1.1.0 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.5 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.4 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.3 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.2 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.1 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.0.rc2 spec/services/hyrax/working_directory_spec.rb
hyrax-1.0.0.rc1 spec/services/hyrax/working_directory_spec.rb
test_hyrax-0.0.1.alpha spec/services/hyrax/working_directory_spec.rb