Sha256: 8a81aec3c2d28c200a19b24a647ff8249a99a6c106114d361833e259cef54a04

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'
require 'shared/nested_attribute_examples'

describe ActiveData::ActiveRecord::NestedAttributes do
  before do
    stub_class(:user, ActiveRecord::Base) do
      embeds_one :profile
      embeds_many :projects

      accepts_nested_attributes_for :profile, :projects
    end
  end

  include_examples 'nested attributes'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_data-1.2.0 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.7 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.6 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.5 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.4 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.3 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.2 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.1 spec/lib/active_data/active_record/nested_attributes_spec.rb
active_data-1.1.0 spec/lib/active_data/active_record/nested_attributes_spec.rb