Sha256: 5069463b91c14a0858380031c08d6b8264c568b5e485fde6fb22e566272b80a9
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
RSpec.describe Post, type: :model do it "includes the model concern" do expect(Post.ancestors).to include Transcript::Receiver end describe "audit_entries has_many" do it { is_expected.to have_many(:audit_entries) } it "returns audit entries for a specific model" do post = create(:post) entries = create_list(:audit_entry, 2, receiver: post) create_list(:audit_entry, 2) expect(post.audit_entries).to match_array entries end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
transcript-0.3.0 | spec/post_spec.rb |
transcript-0.2.1 | spec/post_spec.rb |
transcript-0.2.0 | spec/post_spec.rb |
transcript-0.1.0 | spec/post_spec.rb |