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