Sha256: 675ceb8775925bf041d9fb815c9720d6eba87854e5a6bf7f9d4312f63ca336b9
Contents?: true
Size: 871 Bytes
Versions: 58
Compression:
Stored size: 871 Bytes
Contents
Feature: Index - Page Title Modifying the page title on the index screen Scenario: Set a string as the title Given an index configuration of: """ ActiveAdmin.register Post do index :title => "Awesome Title" end """ Then I should see the page title "Awesome Title" Scenario: Set the title using a proc Given an index configuration of: """ ActiveAdmin.register Post do index :title => proc{ 'Custom title from proc' } end """ Then I should see the page title "Custom title from proc" Scenario: Set the title using a proc that uses the available resource class Given an index configuration of: """ ActiveAdmin.register Post do index :title => proc{ "List of #{resource_class.model_name.plural}" } end """ Then I should see the page title "List of posts"
Version data entries
58 entries across 58 versions & 4 rubygems