Sha256: e5ed74768bdd3cf0bb516bbc7d09ed97b60af1477a59bd33d0481bcbb3d1c93e

Contents?: true

Size: 419 Bytes

Versions: 25

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'

describe StorageRoom::CompoundField do
  before(:each) do
    @field = StorageRoom::CompoundField.new(:identifier => 'identifier')
  end
  
  context "Methods" do
    describe "#add_to_entry_class" do
      it "should add one" do        
        klass = StorageRoom::Entry
        klass.should_receive(:one).with('identifier')
        @field.add_to_entry_class(klass)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
storage_room-0.3.24 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.23 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.22 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.21 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.20 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.19 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.18 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.17 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.16 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.15 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.14 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.13 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.12 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.11 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.10 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.9 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.8 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.7 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.6 spec/storage_room/embeddeds/fields/compound_field_spec.rb
storage_room-0.3.5 spec/storage_room/embeddeds/fields/compound_field_spec.rb