Sha256: aace04fdd78fd7bb0f37cd10a3e6a27fbe79db5b37547621e4276fa80380f35d

Contents?: true

Size: 324 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-rspec-4.1.0 spec/unit/accept_nested_attributes_spec.rb
mongoid-rspec-4.0.1 spec/unit/accept_nested_attributes_spec.rb
mongoid-rspec-4.0.0 spec/unit/accept_nested_attributes_spec.rb