Sha256: 95067a96ffcf1620b70863e9d7bd813316c5a13e69375aaa13b2ea1c7c11ac99

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::UnsavedDigitalObject do
  it "should have ownerId property" do
    @obj = ActiveFedora::UnsavedDigitalObject.new(String, 'bar') 
    @obj.ownerId = 'fooo'
    @obj.ownerId.should == 'fooo'
  end

  describe "#save" do
    it "should set the ownerId property" do
      @obj = ActiveFedora::UnsavedDigitalObject.new(String, 'bar') 
      @obj.ownerId = 'fooo'
      saved_obj = @obj.save
      saved_obj.should be_kind_of ActiveFedora::DigitalObject
      saved_obj.ownerId.should == 'fooo'
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active-fedora-3.2.2 spec/unit/unsaved_digital_object_spec.rb
active-fedora-3.2.0 spec/unit/unsaved_digital_object_spec.rb
active-fedora-3.2.0.pre7 spec/unit/unsaved_digital_object_spec.rb
active-fedora-3.2.0.pre6 spec/unit/unsaved_digital_object_spec.rb