Sha256: b2fbfd1b45ce889b72ebaaee847c2fb0502393d38a252640b58445d57c1a42d3
Contents?: true
Size: 511 Bytes
Versions: 12
Compression:
Stored size: 511 Bytes
Contents
require 'rails_helper' RSpec.describe ActiveAdmin::Views::Sidebar do let(:section) do ActiveAdmin::SidebarSection.new("Section") do para 'Section content.' end end let(:html) do render_arbre_component sections: [section] do sidebar assigns[:sections], id: 'sidebar' end end it "should have an id of 'sidebar'" do expect(html.id).to eq 'sidebar' end it "renders the section" do expect(html.find_by_tag('p').first.content).to eq 'Section content.' end end
Version data entries
12 entries across 12 versions & 2 rubygems