Sha256: f3b4a7dc3a61078f2cca05ee5c33f7f8613edf82190947b905d5c5145212f92c

Contents?: true

Size: 477 Bytes

Versions: 15

Compression:

Stored size: 477 Bytes

Contents

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>") }

    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>' }
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
activeadmin-0.4.4 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.4.3 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.4.2 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.4.1 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.4.0 spec/unit/views/components/blank_slate_spec.rb
andrewroth_activeadmin-0.3.4.4 spec/unit/views/components/blank_slate_spec.rb
andrewroth_activeadmin-0.3.4.3 spec/unit/views/components/blank_slate_spec.rb
andrewroth_activeadmin-0.3.4.2 spec/unit/views/components/blank_slate_spec.rb
andrewroth_activeadmin-0.3.4.1 spec/unit/views/components/blank_slate_spec.rb
andrewroth_activeadmin-0.3.4 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.3.4 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.3.3 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.3.2 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.3.1 spec/unit/views/components/blank_slate_spec.rb
activeadmin-0.3.0 spec/unit/views/components/blank_slate_spec.rb