Sha256: b5cb40f5bda5f0caaec4e8f4e0c9bd1ae321f63e0cd6ae0eb48847a5a3909a0f
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
require 'rails_helper' RSpec.describe Unsakini::Comment, type: :model do before(:all) do user_is_sharing_a_board_scenario end let(:invalid_attributes) { { user_id: @user.id, post_id: @post.id, content: '' } } it_behaves_like 'encryptable', [:content] it "validates title and content" do comment = Unsakini::Comment.new(invalid_attributes) comment.save expect(comment.errors.count).to be 1 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unsakini-0.0.5 | spec/models/comment_spec.rb |
unsakini-0.0.5.pre.1 | spec/models/comment_spec.rb |
unsakini-0.0.4.pre.1 | spec/models/comment_spec.rb |
unsakini-0.0.4.3 | spec/models/comment_spec.rb |