Sha256: 2b5ae44e3d386688ac511484ddddbab40aa18f9dfe9155f96820dd94c1216990

Contents?: true

Size: 688 Bytes

Versions: 11

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe StorageRoom::Field do
  before(:each) do
    @field = StorageRoom::Field.new
  end
  
  context "Configuration" do
    it "should have keys" do
      keys = StorageRoom::Field.attribute_options_including_superclasses.keys
      
      [:name, :identifier, :interface, :hint, :input_type, :required, :unique, :maximum_length, :minimum_length, :minimum_number, :maximum_number, :minimum_size, :maximum_size].each do |key|
        keys.should include(key)
      end
    end
  end
  
  context "Methods" do
    describe "#add_to_entry_class" do
      it "should have method" do
        @field.add_to_entry_class(StorageRoom::Entry)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
storage_room-0.3.24 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.23 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.22 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.21 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.20 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.19 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.18 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.17 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.16 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.15 spec/storage_room/embeddeds/field_spec.rb
storage_room-0.3.14 spec/storage_room/embeddeds/field_spec.rb