Sha256: 775220f6a354351ecac9eef85ea6d1691d206fcb1a9d7b1fb9655fafa6ca5bbd
Contents?: true
Size: 733 Bytes
Versions: 19
Compression:
Stored size: 733 Bytes
Contents
require 'rails_helper' RSpec.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
19 entries across 19 versions & 3 rubygems