Sha256: 6fc79636e0b77b15e762a0dc997c6a75c733ecb66bece9bfa316a6ff5d4f6657
Contents?: true
Size: 1.39 KB
Versions: 19
Compression:
Stored size: 1.39 KB
Contents
require 'pageflow/global_config_api_test_helper' require 'pageflow/test_page_type' require 'pageflow/lint/file_type' require 'pageflow/lint/page_type' module Pageflow # Shared examples providing integration level specs for Pageflow # components commonly defined by plugins. # # @since 13.0 module Lint # Ensure file type json partials render correctly. # # @param name [String] File type name to use in spec descriptions # @param create_file_type [#call] Proc creating the file type to test # @param create_file [#call] Proc creating a fixture file of the # file type # # @example # # require 'spec_helper' # require 'pageflow/lint' # # module SomePlugin # Pageflow::Lint.file_type('some file type', # create_file_type: -> { SomePlugin.file_type }, # create_file: -> { create(:some_file) }) # end def self.file_type(*args) Lint::FileType.lint(*args) end # Contract specs for page types # # @param page_type [PageType] Page type to run specs for # # @since 13.6 # # @example # # require 'spec_helper' # require 'pageflow/lint' # # module SomePlugin # Pageflow::Lint.page_type(SomePLugin.page_type) # end def self.page_type(*args) Lint::PageType.lint(*args) end end end
Version data entries
19 entries across 19 versions & 1 rubygems