Sha256: e9d09bb0f04b37354a060f6b346e88a0989019ac3ae78e1629f65d93c8e2a18c

Contents?: true

Size: 591 Bytes

Versions: 13

Compression:

Stored size: 591 Bytes

Contents

module Sipity
  RSpec.describe Comment, type: :model, no_clean: true do
    context 'database configuration' do
      subject { described_class }
      its(:column_names) { is_expected.to include('entity_id') }
      its(:column_names) { is_expected.to include('agent_id') }
      its(:column_names) { is_expected.to include('comment') }
    end

    subject { described_class.new }
    it 'will expose #name_of_commentor' do
      expect(subject).to receive_message_chain(:agent, :proxy_for, :to_s).and_return('Hiya')
      expect(subject.name_of_commentor).to eq('Hiya')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.7 spec/models/sipity/comment_spec.rb
curation_concerns-2.0.0 spec/models/sipity/comment_spec.rb
curation_concerns-2.0.0.rc2 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.6 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.5 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.4 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.3 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.2 spec/models/sipity/comment_spec.rb
curation_concerns-2.0.0.rc1 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.1 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.0 spec/models/sipity/comment_spec.rb
curation_concerns-1.7.0.beta1 spec/models/sipity/comment_spec.rb