Sha256: 0ce499065cdc2f9a13798cda95d2a8dba370d905a003c2c1e099b04bb5c99ba1

Contents?: true

Size: 433 Bytes

Versions: 40

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::FilePathBuilder do
  describe ".build" do
    let(:parent) { ActiveFedora::Base.new(id: '1234') }
    subject { described_class.build(parent, nil, 'FOO') }

    it { should eq 'FOO1' }

    context "when some datastreams exist" do
      before do
        allow(parent).to receive(:attached_files).and_return('FOO56' => double)
      end

      it { should eq 'FOO57' }
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
active-fedora-10.3.0 spec/unit/file_path_builder_spec.rb
active-fedora-9.7.3 spec/unit/file_path_builder_spec.rb
active-fedora-10.3.0.rc2 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc7 spec/unit/file_path_builder_spec.rb
active-fedora-10.3.0.rc1 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc6 spec/unit/file_path_builder_spec.rb
active-fedora-10.2.1 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc5 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc4 spec/unit/file_path_builder_spec.rb
active-fedora-10.2.0 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc3 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc2 spec/unit/file_path_builder_spec.rb
active-fedora-11.0.0.rc1 spec/unit/file_path_builder_spec.rb
active-fedora-10.1.0 spec/unit/file_path_builder_spec.rb
active-fedora-10.1.0.rc1 spec/unit/file_path_builder_spec.rb
active-fedora-9.7.2 spec/unit/file_path_builder_spec.rb
active-fedora-10.0.0 spec/unit/file_path_builder_spec.rb
active-fedora-10.0.0.beta4 spec/unit/file_path_builder_spec.rb
active-fedora-10.0.0.beta3 spec/unit/file_path_builder_spec.rb
active-fedora-10.0.0.beta2 spec/unit/file_path_builder_spec.rb