Sha256: 4ed738a5a9bdcfb06c399b0d32ac749a436393f03cf1b3477e22fb94ebd148fc

Contents?: true

Size: 923 Bytes

Versions: 62

Compression:

Stored size: 923 Bytes

Contents

require 'spec_helper'

describe ActiveAdmin::Views::Popover do

  let(:the_popover) do
    render_arbre_component do
      popover :id => "my_awesome_popover" do
        para "Hello World, this is popover content baby."
      end
    end
  end

  it "should have the class of 'sidebar_section'" do
    the_popover.class_list.should include("popover")
  end

  it "should have an inner content element class of 'popover_contents'" do
    the_popover.find_by_tag("div").first.class_list.should include("popover_contents")
  end

  it "should have the popover content in the inner content element" do
    the_popover.find_by_class("popover_contents").first.content.should include("Hello World, this is popover content baby.")
  end

  it "should have an id" do
    the_popover.id.should == "my_awesome_popover"
  end

  it "should be hidden" do
    the_popover.attributes.should include(:style => "display: none");
  end

end

Version data entries

62 entries across 62 versions & 4 rubygems

Version Path
activeadmin-0.6.6 spec/unit/views/components/popover_spec.rb
activeadmin-0.6.5 spec/unit/views/components/popover_spec.rb
activeadmin-0.6.4 spec/unit/views/components/popover_spec.rb
yousty-activeadmin-1.0.4.pre spec/unit/views/components/popover_spec.rb
yousty-activeadmin-1.0.3.pre spec/unit/views/components/popover_spec.rb
yousty-activeadmin-1.0.2.pre spec/unit/views/components/popover_spec.rb
activeadmin-0.6.3 spec/unit/views/components/popover_spec.rb
yousty-activeadmin-1.0.1.pre spec/unit/views/components/popover_spec.rb
yousty-activeadmin-1.0.0.pre spec/unit/views/components/popover_spec.rb
activeadmin-0.6.2 spec/unit/views/components/popover_spec.rb
activeadmin-0.6.1 spec/unit/views/components/popover_spec.rb
aa-rails4-0.6.0 spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.141 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.134 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.133 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.132 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.131 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb
lalala-4.0.0.dev.129 vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb