Sha256: 87badc969c71f88f030a18c50d7ef069f3f159d5513a542c92863b76b9b17562
Contents?: true
Size: 896 Bytes
Versions: 5
Compression:
Stored size: 896 Bytes
Contents
require 'spec_helper' describe ActiveAdmin::Views::Panel do setup_arbre_context! let(:the_panel) do panel "My Title" do span("Hello World") end end it "should have a title h3" do the_panel.find_by_tag("h3").first.content.should == "My Title" end it "should have a contents div" do the_panel.find_by_tag("div").first.class_list.should include("panel_contents") end it "should add children to the contents div" do the_panel.find_by_tag("span").first.parent.should == the_panel.find_by_tag("div").first end it "should set the icon" do panel("Title", :icon => :arrow_down).find_by_tag("h3").first.content.should include("span class=\"icon") end describe "#children?" do it "returns false if no children have been added to the panel" do the_panel = panel("A Panel") the_panel.children?.should == false end end end
Version data entries
5 entries across 5 versions & 1 rubygems