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