Sha256: 793043f9f7b7b87e695968047d098c3b22f317e380ac33d1a738516a16ad42b8
Contents?: true
Size: 720 Bytes
Versions: 20
Compression:
Stored size: 720 Bytes
Contents
require 'rails_helper' describe ActiveAdmin::Views::BlankSlate do describe "#blank_slate" do subject do render_arbre_component do blank_slate("There are no Posts yet. <a href=\"/posts/new\">Create one</a></span>") end end describe '#tag_name' do subject { super().tag_name } it { is_expected.to eql 'div' } end describe '#class_list' do subject { super().class_list } it { is_expected.to include('blank_slate_container') } end describe '#content' do subject { super().content } it { is_expected.to include '<span class="blank_slate">There are no Posts yet. <a href="/posts/new">Create one</a></span>' } end end end
Version data entries
20 entries across 20 versions & 3 rubygems