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
lalala-4.0.0.dev.128 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.94 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.92 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.90 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.84 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.80 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.79 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.78 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb
lalala-4.0.0.dev.77 vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb