Sha256: 203de00597bf63b89fbfbbebcc9d0b748f18bfac59a66431d85637250ae715c5
Contents?: true
Size: 660 Bytes
Versions: 14
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' describe StorageRoom::AtomicField do before(:each) do @field = StorageRoom::AtomicField.new(:identifier => 'identifier') end context "Configuration" do it "should have keys" do keys = StorageRoom::AtomicField.attribute_options.keys [:default_value, :choices, :include_blank_choice].each do |key| keys.should include(key) end end end context "Methods" do describe "#add_to_entry_class" do it "should add key" do klass = StorageRoom::Entry klass.should_receive(:key).with('identifier') @field.add_to_entry_class(klass) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems