Sha256: ec6f0303986e2d513f8f1f5dea0e4d5728ad9715f07266a4bfb9d015f89a5095
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
require 'rails_helper' RSpec.describe ActiveAdmin::Views::BlankSlate do describe "#blank_slate" do subject do render_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
3 entries across 3 versions & 1 rubygems