Sha256: d41bf5e7dcd1c8c49def01dbc1725d1ff25928adbdf4790dc432e90ddc45f570

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 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::TabsRenderer
  it_should_have_view :action_items,      ActiveAdmin::Views::ActionItems
  it_should_have_view :header,            ActiveAdmin::Views::HeaderRenderer
  it_should_have_view :dashboard_page,    ActiveAdmin::Views::Pages::Dashboard

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
saulolso-activeadmin-0.2.2.1 spec/unit/view_factory_spec.rb
saulolso-activeadmin-0.2.2 spec/unit/view_factory_spec.rb
activeadmin-0.2.2 spec/unit/view_factory_spec.rb
activeadmin-0.2.1 spec/unit/view_factory_spec.rb
activeadmin-0.2.0 spec/unit/view_factory_spec.rb