Sha256: 50c71a2b016aeafee553d8c2dcf632d6fc52c11169b55c0bf4e8917b2845c4c1
Contents?: true
Size: 249 Bytes
Versions: 3
Compression:
Stored size: 249 Bytes
Contents
require 'rails_helper' module Theblog RSpec.describe Category, :type => :model do it { is_expected.to have_many(:posts) } 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/category_spec.rb |
theblog-0.0.2.2 | spec/models/theblog/category_spec.rb |
theblog-0.0.2 | spec/models/theblog/category_spec.rb |