Sha256: 0065c680e2df0cfe14320db3d6bb6eebfc7ae38d14e17935e9eed502980bb9ad

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

describe BaseComponent do

  include RSpec::Rails::RequestExampleGroup

  context 'index' do

    it 'should render field content' do
      @category = Fabricate :category
      get admin_categories_path

      field = controller.index_fields[:title]
      Puffer::Component::Base.render_component(controller, field, :index, :record => @category).should == @category.title
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puffer-0.0.32 spec/app/components/base_component_spec.rb
puffer-0.0.31 spec/app/components/base_component_spec.rb
puffer-0.0.30 spec/app/components/base_component_spec.rb
puffer-0.0.29 spec/app/components/base_component_spec.rb
puffer-0.0.28 spec/app/components/base_component_spec.rb
puffer-0.0.26 spec/app/components/base_component_spec.rb
puffer-0.0.25 spec/app/components/base_component_spec.rb
puffer-0.0.24 spec/app/components/base_component_spec.rb