Sha256: a9f9f365f97cda09eef84658396793dd758e8b831d43cfc6b089f8f73cf74827

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

require 'rails_helper'

RSpec.describe Letter, :type => :model do
  it { should have_many(:hide_custom_comments).dependent(:destroy).class_name('CustomComment').conditions(role: 'hide') }
  it { should have_many(:show_custom_comments).dependent(:destroy).class_name('CustomComment').conditions(role: 'show') }
end

Version data entries

10 entries across 10 versions & 1 rubygems

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