spec/unit/views/components/blank_slate_spec.rb in activeadmin-0.6.6 vs spec/unit/views/components/blank_slate_spec.rb in activeadmin-1.0.0.pre1
- old
+ new
@@ -1,17 +1,27 @@
-require 'spec_helper'
+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
- its(:tag_name) { should eql 'div' }
- its(:class_list) { should include('blank_slate_container') }
+ describe '#tag_name' do
+ subject { super().tag_name }
+ it { is_expected.to eql 'div' }
+ end
- its(:content) { should include '<span class="blank_slate">There are no Posts yet. <a href="/posts/new">Create one</a></span>' }
+ 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