Sha256: 9017dbdd921b63d5f0b89b914de85b6e087783785ff75b2295fdc69104de78f6

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe Granite::Form::Model::Associations::NestedAttributes do
  context '' do
    before do
      stub_model :user do
        include Granite::Form::Model::Associations

        attribute :email, String
        embeds_one :profile
        embeds_many :projects

        accepts_nested_attributes_for :profile, :projects
      end
    end

    include_examples 'nested attributes'
  end

  describe '#assign_attributes' do
    specify 'invent a good example'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
granite-form-0.6.0 spec/granite/form/model/associations/nested_attributes_spec.rb
granite-form-0.5.0 spec/granite/form/model/associations/nested_attributes_spec.rb
granite-form-0.4.0 spec/granite/form/model/associations/nested_attributes_spec.rb
granite-form-0.3.0 spec/granite/form/model/associations/nested_attributes_spec.rb