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