Sha256: d37963f825a054d91351966e93cd6e48ae17eef3623d00a8dd867ff595fde472

Contents?: true

Size: 344 Bytes

Versions: 29

Compression:

Stored size: 344 Bytes

Contents

require 'rails_helper'

shared_examples_for :flexible_content do
  let(:model) { described_class }
  let(:klass) { model.to_s.underscore.to_sym }

  it '.flexible_content?' do
    expect(model.new).to be_flexible_content
  end

  it '#respond_to?' do
    expect(model.new).to respond_to(
      :content_rows, :flexible_content?
    )
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
udongo-7.9.0 spec/support/concerns/flexible_content.rb
udongo-7.8.1 spec/support/concerns/flexible_content.rb
udongo-7.8.0 spec/support/concerns/flexible_content.rb
udongo-7.7.2 spec/support/concerns/flexible_content.rb
udongo-7.7.1 spec/support/concerns/flexible_content.rb
udongo-7.7.0 spec/support/concerns/flexible_content.rb
udongo-7.6.2 spec/support/concerns/flexible_content.rb
udongo-7.6.1 spec/support/concerns/flexible_content.rb
udongo-7.6.0 spec/support/concerns/flexible_content.rb
udongo-7.5.1 spec/support/concerns/flexible_content.rb
udongo-7.5.0 spec/support/concerns/flexible_content.rb
udongo-7.4.2 spec/support/concerns/flexible_content.rb
udongo-7.4.1 spec/support/concerns/flexible_content.rb
udongo-7.4.0 spec/support/concerns/flexible_content.rb
udongo-7.3.5 spec/support/concerns/flexible_content.rb
udongo-7.3.4 spec/support/concerns/flexible_content.rb
udongo-7.3.3 spec/support/concerns/flexible_content.rb
udongo-7.3.2 spec/support/concerns/flexible_content.rb
udongo-7.3.1 spec/support/concerns/flexible_content.rb
udongo-7.2.1 spec/support/concerns/flexible_content.rb