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

Version Path
fe-2.1.6.1 spec/models/fe/paragraph_spec.rb
fe-2.1.6 spec/models/fe/paragraph_spec.rb
fe-2.1.5 spec/models/fe/paragraph_spec.rb
fe-2.1.4 spec/models/fe/paragraph_spec.rb
fe-2.1.3 spec/models/fe/paragraph_spec.rb
fe-2.1.2 spec/models/fe/paragraph_spec.rb
fe-2.1.1 spec/models/fe/paragraph_spec.rb
fe-2.0.8 spec/models/fe/paragraph_spec.rb
fe-2.0.6 spec/models/fe/paragraph_spec.rb
fe-2.0.5 spec/models/fe/paragraph_spec.rb
fe-2.0.4 spec/models/fe/paragraph_spec.rb
fe-2.0.3 spec/models/fe/paragraph_spec.rb
fe-2.0.2 spec/models/fe/paragraph_spec.rb
fe-2.0.1 spec/models/fe/paragraph_spec.rb
fe-2.0.0 spec/models/fe/paragraph_spec.rb
fe-1.0.0 spec/models/fe/paragraph_spec.rb
fe-0.0.4 spec/models/fe/paragraph_spec.rb