Sha256: 57574fba5560f2fa37dc6fcefe062af6b227db2f496e18b04d46a7417c724cba

Contents?: true

Size: 758 Bytes

Versions: 17

Compression:

Stored size: 758 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

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

end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
activeadmin-rb-1.6.0 spec/unit/view_factory_spec.rb
activeadmin-rb-1.5.2 spec/unit/view_factory_spec.rb
activeadmin-rb-1.5.1 spec/unit/view_factory_spec.rb
activeadmin-rb-1.5.0 spec/unit/view_factory_spec.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin-rb-1.4.0 spec/unit/view_factory_spec.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin-1.3.1 spec/unit/view_factory_spec.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin-1.3.0 spec/unit/view_factory_spec.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/view_factory_spec.rb
activeadmin-1.2.1 spec/unit/view_factory_spec.rb
activeadmin-1.2.0 spec/unit/view_factory_spec.rb
activeadmin-1.1.0 spec/unit/view_factory_spec.rb