require 'rails_helper'

describe ContentTextDecorator do
  it '#render' do
    text = build(:content_text, content: 'Foo')
    expect(text.decorate.render).to eq 'Foo'
  end

  it '#text?' do
    expect(build(:content_text).decorate).to be_text
  end

  it '#image?' do
    expect(build(:content_text).decorate).not_to be_image
  end

  it '#respond_to?' do
    expect(build(:content_text).decorate).to respond_to(:render, :text?, :image?)
  end
end

Add spec for the content text decorator.
Add spec for the content text decorator.
