Sha256: f7f0ad2b6a61b2778ff79fb9f9dee2f8f207d470f9bb28f27dc63ba3ab637198

Contents?: true

Size: 832 Bytes

Versions: 5

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 :utility_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 :layout,               ActiveAdmin::Views::Pages::Layout

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yousty-activeadmin-1.0.4.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.3.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.2.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.1.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.0.pre spec/unit/view_factory_spec.rb