Sha256: b4155dd5b45fe9685094382b9df581253e0c8cfc28054dc70671dbcdc1aebd9f

Contents?: true

Size: 837 Bytes

Versions: 14

Compression:

Stored size: 837 Bytes

Contents

require 'rails_helper'

def it_should_have_view(key, value)
  it "should have #{value} for view key '#{key}'" do
    expect(subject.send(key)).to  eq 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

14 entries across 14 versions & 2 rubygems

Version Path
yousty-activeadmin-1.0.17.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.16.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.15.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.14.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.13.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.12.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.11.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.10.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.9.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.8.pre spec/unit/view_factory_spec.rb
activeadmin-1.0.0.pre1 spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.7.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.6.pre spec/unit/view_factory_spec.rb
yousty-activeadmin-1.0.5.pre spec/unit/view_factory_spec.rb