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.64 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.63 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.62 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.61 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.60 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.59 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.57 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.56 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.55 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.54 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.53 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.52 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.51 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.50 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.49 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.48 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.47 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.46 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.45 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb
tenon-1.0.44 spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb