Sha256: 45b95d814c5e581098be38be98b1de00d8effd46c3f35e29594cbc60f7246047
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' require 'lib/active_data/model/nested_attributes' describe ActiveData::Model::Associations::NestedAttributes do before do stub_model :user do include ActiveData::Model::Associations attribute :email, String embeds_one :profile embeds_many :projects accepts_nested_attributes_for :profile, :projects def save apply_association_changes! end end end include_examples 'nested attributes' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_data-1.0.0 | spec/lib/active_data/model/associations/nested_attributes_spec.rb |