Sha256: 2f943a109b811feced4f458a2d1546a9a48647a42734c961530e1e4b6c994367
Contents?: true
Size: 575 Bytes
Versions: 25
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe StorageRoom::ManyAssociationField do describe StorageRoom::OneAssociationField do before(:each) do @field = StorageRoom::ManyAssociationField.new(:collection_url => 'URL', :identifier => 'identifier') end context "Methods" do describe "#add_to_entry_class" do it "should add many" do StorageRoom::Collection.stub(:load) klass = StorageRoom::Entry klass.should_receive(:many).with('identifier') @field.add_to_entry_class(klass) end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems