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.6.0.pre3 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.pre2 spec/unit/association_proxy_spec.rb
active-fedora-6.6.0.pre1 spec/unit/association_proxy_spec.rb
active-fedora-6.5.1 spec/unit/association_proxy_spec.rb
active-fedora-6.5.0 spec/unit/association_proxy_spec.rb
active-fedora-6.4.5 spec/unit/association_proxy_spec.rb
active-fedora-6.4.4 spec/unit/association_proxy_spec.rb
active-fedora-6.4.3 spec/unit/association_proxy_spec.rb
active-fedora-6.4.2 spec/unit/association_proxy_spec.rb
active-fedora-6.4.1 spec/unit/association_proxy_spec.rb
active-fedora-6.4.0 spec/unit/association_proxy_spec.rb
active-fedora-6.4.0.rc4 spec/unit/association_proxy_spec.rb
active-fedora-6.4.0.rc3 spec/unit/association_proxy_spec.rb
active-fedora-6.4.0.rc2 spec/unit/association_proxy_spec.rb
active-fedora-6.4.0.rc1 spec/unit/association_proxy_spec.rb
active-fedora-6.3.0 spec/unit/association_proxy_spec.rb
active-fedora-6.2.0 spec/unit/association_proxy_spec.rb
active-fedora-6.1.1 spec/unit/association_proxy_spec.rb
active-fedora-6.1.0 spec/unit/association_proxy_spec.rb
active-fedora-5.6.3 spec/unit/association_proxy_spec.rb