Sha256: cbf7c8eabe03bae7ceca834c599d528f5ef06ab1dabcd5ceff759a9edf239d32

Contents?: true

Size: 438 Bytes

Versions: 25

Compression:

Stored size: 438 Bytes

Contents

require 'rails_helper'

class MockComponentClass < ActiveAdmin::Component; end

describe ActiveAdmin::Component do

  let(:component_class){ MockComponentClass }
  let(:component){ component_class.new }

  it "should be a subclass of an html div" do
    expect(ActiveAdmin::Component.ancestors).to include(Arbre::HTML::Div)
  end

  it "should render to a div, even as a subclass" do
    expect(component.tag_name).to eq 'div'
  end

end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/component_spec.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/component_spec.rb
yousty-activeadmin-1.0.17.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.16.pre spec/unit/component_spec.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/component_spec.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/component_spec.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/component_spec.rb
yousty-activeadmin-1.0.15.pre spec/unit/component_spec.rb
activeadmin-orac-1.0.0.pre4 spec/unit/component_spec.rb
activeadmin-orac-1.0.0 spec/unit/component_spec.rb
activeadmin-orac-1.0.0.pre.orac spec/unit/component_spec.rb
yousty-activeadmin-1.0.14.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.13.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.12.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.11.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.10.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.9.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.8.pre spec/unit/component_spec.rb
activeadmin-1.0.0.pre4 spec/unit/component_spec.rb
activeadmin-1.0.0.pre3 spec/unit/component_spec.rb