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.0.43 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.42 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.41 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.40 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.39 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.38 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.37 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.36 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.35 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.33 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.32 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.31 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.30 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.29 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.28 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.27 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.26 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.25 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.24 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.23 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb