Sha256: ff692340e64cf21b3848d406b076b1b8bbaefb673848b63177d2f3814b589ca9

Contents?: true

Size: 786 Bytes

Versions: 62

Compression:

Stored size: 786 Bytes

Contents

require 'spec_helper'

describe ActiveAdmin::Views::ActionListPopover do

  let(:the_popover) do
    arbre {
      action_list_popover :id => "my_awesome_action_list_popover" do
        action "My First Great Action", "#"
        action "My Second Great Action", "http://www.google.com"
      end
    }.children.first
  end

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

  describe "the action list" do
    subject do
      the_popover.find_by_class("popover_contents").first
    end

    its(:tag_name) { should eql("ul") }

    its(:content){ should include("<li><a href=\"#\">My First Great Action</a></li>") }
    its(:content){ should include("<li><a href=\"http://www.google.com\">My Second Great Action</a></li>") }

  end

end

Version data entries

62 entries across 62 versions & 4 rubygems

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