Sha256: 9743354a27aac5ab9a5e2e9ce0b5191f8c74a58b68d072864b077d0af3d97208

Contents?: true

Size: 370 Bytes

Versions: 12

Compression:

Stored size: 370 Bytes

Contents

require 'rails_helper'

RSpec.describe ActiveAdmin::Views::Pages::Base do
  class NewPage < ActiveAdmin::Views::Pages::Base
  end

  it "defines a default title" do
    expect(NewPage.new.title).to eq 'NewPage'
  end

  it "defines default main content" do
    expect(NewPage.new.main_content).to eq 'Please implement NewPage#main_content to display content.'
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
activeadmin-rb-1.6.0 spec/unit/views/pages/base_spec.rb
activeadmin-rb-1.5.2 spec/unit/views/pages/base_spec.rb
activeadmin-rb-1.5.1 spec/unit/views/pages/base_spec.rb
activeadmin-rb-1.5.0 spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin-rb-1.4.0 spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/spec/unit/views/pages/base_spec.rb