Sha256: f206217b086813fdee3990819dac9b4eca985690dda76ae8343475c3d2a5c2de

Contents?: true

Size: 551 Bytes

Versions: 83

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

describe Tenon::TenonContent::RowDecorator do
  let(:decorator) { Tenon::TenonContent::RowDecorator.new(row_type) }
  let(:row_type) { double(row_type_class: row_type_class) }
  let(:row_type_class) do
    double(
      partial: 'partial',
      form_partial: 'form_partial'
    )
  end

  it 'should get the partial from the row type class' do
    expect(decorator.partial).to eq('partial')
  end

  it 'should get the form_partial from the row type class' do
    expect(decorator.form_partial).to eq('form_partial')
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.7 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.6 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.5 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.4 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.3 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.2 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.1.1 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.76 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.75 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.74 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.73 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.72 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.71 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.70 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.69 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.68 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.67 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.66 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.65 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb