Sha256: c93b70cd574219472a00dfbbc9949f75e9c5b24ba44974f3bde742f66fbd387e

Contents?: true

Size: 832 Bytes

Versions: 46

Compression:

Stored size: 832 Bytes

Contents

require 'spec_helper'

def it_should_have_view(key, value)
  it "should have #{value} for view key '#{key}'" do
    subject.send(key).should  == value
  end
end

describe ActiveAdmin::ViewFactory do

  it_should_have_view :global_navigation,    ActiveAdmin::Views::TabbedNavigation
  it_should_have_view :site_title,           ActiveAdmin::Views::SiteTitle
  it_should_have_view :action_items,         ActiveAdmin::Views::ActionItems
  it_should_have_view :header,               ActiveAdmin::Views::Header
  it_should_have_view :blank_slate,          ActiveAdmin::Views::BlankSlate
  it_should_have_view :action_list_popover,  ActiveAdmin::Views::ActionListPopover

  it_should_have_view :dashboard_page,       ActiveAdmin::Views::Pages::Dashboard
  it_should_have_view :layout,               ActiveAdmin::Views::Pages::Layout

end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.134 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.133 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.132 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.131 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.129 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.128 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/spec/unit/view_factory_spec.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/spec/unit/view_factory_spec.rb