Sha256: 2a340ee587b077dd454f365a1060fcafca7442e3964f05ccd07dc0dbd33a44c3

Contents?: true

Size: 296 Bytes

Versions: 12

Compression:

Stored size: 296 Bytes

Contents

require 'rails_helper'

RSpec.describe Note, :type => :model do
  it { should have_many(:private_comments).dependent(:destroy).class_name('Comment').conditions(role: 'private') }
  it { should have_many(:public_comments).dependent(:destroy).class_name('Comment').conditions(role: 'public') }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
acts_as_commentable_more-1.2.11 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.10 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.9 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.8 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.7 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.6 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.5 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.4 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.3 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.2 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.1 test/dummy/spec/models/note_spec.rb
acts_as_commentable_more-1.2.0 test/dummy/spec/models/note_spec.rb