Sha256: 652449eef6b366b06bda0e59c4f5c20c005c4eb1d7183f0353ca40d81c80856e
Contents?: true
Size: 895 Bytes
Versions: 21
Compression:
Stored size: 895 Bytes
Contents
Feature: Show - Page Title Modifying the page title on the show screen Background: Given a post with the title "Hello World" written by "Jane Doe" exists Scenario: Set a method to be called on the resource as the title Given a show configuration of: """ ActiveAdmin.register Post do show :title => :title end """ Then I should see the page title "Hello World" Scenario: Set a string as the title Given a show configuration of: """ ActiveAdmin.register Post do show :title => "Title From String" end """ Then I should see the page title "Title From String" Scenario: Set a proc as the title Given a show configuration of: """ ActiveAdmin.register Post do show :title => proc{|post| "Title: " + post.title } end """ Then I should see the page title "Title: Hello World"
Version data entries
21 entries across 21 versions & 4 rubygems