Sha256: 244f2727c3da30dda98de2cb7cef2ff557f670640df44aae54c9309f63704876
Contents?: true
Size: 444 Bytes
Versions: 19
Compression:
Stored size: 444 Bytes
Contents
require 'rails_helper' class MockComponentClass < ActiveAdmin::Component; end RSpec.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
19 entries across 19 versions & 3 rubygems