Sha256: 6410590a014d2326df863f7538af25c70f65187b8141b59ef64ead6ed2c16d72
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require 'test_helper' require 'models' class OneAssociationTest < Test::Unit::TestCase include MongoMapper::Plugins::Associations context "embeddable?" do should "be true if class is embeddable" do base = OneAssociation.new(:media) base.embeddable?.should be_true end should "be false if class is not embeddable" do base = OneAssociation.new(:project) base.embeddable?.should be_false end end end
Version data entries
3 entries across 3 versions & 1 rubygems