Sha256: 98714cba6d67923323821cd391b29532b642ef35aa563c7f247d7a9e7bdb18a0
Contents?: true
Size: 683 Bytes
Versions: 11
Compression:
Stored size: 683 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_including_superclasses.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
11 entries across 11 versions & 1 rubygems