Sha256: add5d5aa5e01b145abfc4e4abc20427e8687b9fc983ee3386ecf65ec1ee7f62a
Contents?: true
Size: 340 Bytes
Versions: 3
Compression:
Stored size: 340 Bytes
Contents
require 'rails_helper' module Theblog RSpec.describe Post, type: :model do it { is_expected.to have_many(:comments) } it { is_expected.to have_many(:comments) } it { is_expected.to belong_to(:category) } it { is_expected.to validate_presence_of(:title) } it { is_expected.to validate_presence_of(:slug) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
theblog-0.0.2.3 | spec/models/theblog/post_spec.rb |
theblog-0.0.2.2 | spec/models/theblog/post_spec.rb |
theblog-0.0.2 | spec/models/theblog/post_spec.rb |