Sha256: 7a20606c4a5a98736f52367a48c71d3489e37d49bb5ff9f55cc299ce21540eb1

Contents?: true

Size: 388 Bytes

Versions: 85

Compression:

Stored size: 388 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Associations::AssociationProxy do
  it "should delegate to_param" do
    @owner = stub(:new_record? => false)
    @assoc = ActiveFedora::Associations::AssociationProxy.new(@owner, @reflection)
    @assoc.expects(:find_target).returns(stub(:to_param => '1234'))
    @assoc.send(:load_target)
    @assoc.to_param.should == '1234'
  
  end

end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
active-fedora-5.1.0 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0.rc5 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0.rc4 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0.rc3 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0.rc2 spec/unit/association_proxy_spec.rb
active-fedora-5.0.0.rc1 spec/unit/association_proxy_spec.rb
active-fedora-4.6.0.rc4 spec/unit/association_proxy_spec.rb
active-fedora-4.6.0.rc3 spec/unit/association_proxy_spec.rb
active-fedora-4.6.0.rc2 spec/unit/association_proxy_spec.rb
active-fedora-4.6.0.rc1 spec/unit/association_proxy_spec.rb
active-fedora-4.5.3 spec/unit/association_proxy_spec.rb
active-fedora-4.5.2 spec/unit/association_proxy_spec.rb
active-fedora-4.5.1 spec/unit/association_proxy_spec.rb
active-fedora-4.5.0 spec/unit/association_proxy_spec.rb
active-fedora-4.4.1 spec/unit/association_proxy_spec.rb
active-fedora-4.4.0 spec/unit/association_proxy_spec.rb
active-fedora-4.3.0 spec/unit/association_proxy_spec.rb
active-fedora-4.2.0 spec/unit/association_proxy_spec.rb
active-fedora-4.1.0 spec/unit/association_proxy_spec.rb