Sha256: e37594d40ea92e3dbf47cfd91f3909105d6a4ddf774570549c3b502b0c616977

Contents?: true

Size: 429 Bytes

Versions: 83

Compression:

Stored size: 429 Bytes

Contents

require 'spec_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
    ActiveAdmin::Component.ancestors.should include(Arbre::HTML::Div)
  end

  it "should render to a div, even as a subclass" do
    component.tag_name.should == 'div'
  end

end

Version data entries

83 entries across 83 versions & 7 rubygems

Version Path
lalala-4.0.0.dev.128 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.94 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.92 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.90 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.84 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.80 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.79 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.78 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.77 vendor/deps/active_admin/spec/unit/component_spec.rb