Sha256: e881386ae1569d754c14ff0b445f8ca9386f33755ff4490fc1de2369e9f05d19

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

require 'rails_helper'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_commentable_more-1.2.1 test/dummy/spec/models/letter_spec.rb
acts_as_commentable_more-1.2.0 test/dummy/spec/models/letter_spec.rb