This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe "Association Validation Inheritance" do | |
context "#update_attributes" do | |
before(:all) do | |
parent = ValInheritanceParent.new | |
embedded = ValInheritanceEmbed.new(:embed_value => 'start value') | |
referenced = ValInheritanceRef.new(:ref_value => 'start value') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example | |
include Mongoid::Document | |
field :example_val | |
class Holder < HolderBase | |
embeds_one :item, :class_name => "Example" | |
end | |
end |