Sha256: c200158f1fc5931fe2d4d16def56fceb53e66e4607827cb722b27344a8d4df1a

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

RSpec.describe "AcceptsNestedAttributes" do
  describe User do
    it { is_expected.to accept_nested_attributes_for(:articles) }
    it { is_expected.to accept_nested_attributes_for(:comments) }
  end

  describe Article do
    it { is_expected.to accept_nested_attributes_for(:permalink) }
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mongoid-spec-4.0.1 spec/unit/accept_nested_attributes_spec.rb
mongoid-rspec-3.0.0 spec/unit/accept_nested_attributes_spec.rb
mongoid-rspec-2.2.0 spec/unit/accept_nested_attributes_spec.rb
mongoid-rspec-2.1.0 spec/unit/accept_nested_attributes_spec.rb