spec/unit/views/components/blank_slate_spec.rb in activeadmin-0.4.4 vs spec/unit/views/components/blank_slate_spec.rb in activeadmin-0.5.0.pre
- old
+ new
@@ -1,12 +1,14 @@
require 'spec_helper'
describe ActiveAdmin::Views::BlankSlate do
- setup_arbre_context!
-
describe "#blank_slate" do
- subject { blank_slate("There are no Posts yet. <a href=\"/posts/new\">Create one</a></span>") }
+ subject do
+ render_arbre_component do
+ blank_slate("There are no Posts yet. <a href=\"/posts/new\">Create one</a></span>")
+ end
+ end
its(:tag_name) { should eql 'div' }
its(:class_list) { should include('blank_slate_container') }
its(:content) { should include '<span class="blank_slate">There are no Posts yet. <a href="/posts/new">Create one</a></span>' }