Sha256: 645c4ef93875dec96ab2f5a0a42e4817422153bf73295fcbeed4a8b2783f96ae

Contents?: true

Size: 409 Bytes

Versions: 71

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'

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

end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
active-fedora-6.7.8 spec/unit/association_proxy_spec.rb
active-fedora-6.7.7 spec/unit/association_proxy_spec.rb
active-fedora-6.7.6 spec/unit/association_proxy_spec.rb
active-fedora-6.7.5 spec/unit/association_proxy_spec.rb
active-fedora-6.7.4 spec/unit/association_proxy_spec.rb
active-fedora-6.7.3 spec/unit/association_proxy_spec.rb
active-fedora-6.7.2 spec/unit/association_proxy_spec.rb
active-fedora-6.7.1 spec/unit/association_proxy_spec.rb
active-fedora-6.7.0 spec/unit/association_proxy_spec.rb
active-fedora-6.7.0.rc1 spec/unit/association_proxy_spec.rb
active-fedora-6.6.1 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0 spec/unit/association_proxy_spec.rb
active-fedora-5.7.1 spec/unit/association_proxy_spec.rb
active-fedora-5.7.0 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.rc5 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.rc4 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.rc3 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.rc2 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.rc1 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.pre4 spec/unit/association_proxy_spec.rb