Sha256: 18e36d5236c6c2fe809d5dca90504ea218f3ff748c621a09a55c0a52ddb18cdc
Contents?: true
Size: 653 Bytes
Versions: 4
Compression:
Stored size: 653 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.keys [:name, :identifier, :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
4 entries across 4 versions & 1 rubygems