Sha256: f16123b49b87ccbea9c76d0bde09f9a10d6d850675a361ac1993eb97928bbb7f
Contents?: true
Size: 467 Bytes
Versions: 17
Compression:
Stored size: 467 Bytes
Contents
require 'rails_helper' describe Fe::Paragraph do describe '#validate_presence_of :content on update' do it 'successfully saves with content' do paragraph = build(:paragraph) paragraph.content = "abc" expect(paragraph.save).to eq(true) end it 'saves with default content' do paragraph = build(:paragraph) expect(paragraph.save).to eq(true) expect(paragraph.content).to eq("Lorem ipsum...") end end end
Version data entries
17 entries across 17 versions & 1 rubygems