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
activeadmin-0.6.6 spec/unit/component_spec.rb
activeadmin-0.6.5 spec/unit/component_spec.rb
activeadmin-0.6.4 spec/unit/component_spec.rb
yousty-activeadmin-1.0.4.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.3.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.2.pre spec/unit/component_spec.rb
activeadmin-0.6.3 spec/unit/component_spec.rb
yousty-activeadmin-1.0.1.pre spec/unit/component_spec.rb
yousty-activeadmin-1.0.0.pre spec/unit/component_spec.rb
activeadmin-0.6.2 spec/unit/component_spec.rb
activeadmin-0.6.1 spec/unit/component_spec.rb
aa-rails4-0.6.0 spec/unit/component_spec.rb
lalala-4.0.0.dev.141 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.134 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.133 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.132 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.131 vendor/deps/active_admin/spec/unit/component_spec.rb
lalala-4.0.0.dev.129 vendor/deps/active_admin/spec/unit/component_spec.rb