pageflow/lint.rb in pageflow-support-16.0.0 vs pageflow/lint.rb in pageflow-support-16.1.0
- old
+ new
@@ -23,12 +23,12 @@
#
# require 'spec_helper'
# require 'pageflow/lint'
#
# Pageflow::Lint.entry_type(SomePlugin.entry_type)
- def self.entry_type(*args)
- Lint::EntryType.lint(*args)
+ def self.entry_type(*args, **kws)
+ Lint::EntryType.lint(*args, **kws)
end
# Ensure file type json partials render correctly.
#
# @param name [String] File type name to use in spec descriptions
@@ -50,12 +50,12 @@
# 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)
+ def self.file_type(*args, **kws)
+ Lint::FileType.lint(*args, **kws)
end
# Contract specs for page types
#
# @param page_type [PageType] Page type to run specs for
@@ -68,12 +68,12 @@
# require 'pageflow/lint'
#
# module SomePlugin
# Pageflow::Lint.page_type(SomePLugin.page_type)
# end
- def self.page_type(*args)
- Lint::PageType.lint(*args)
+ def self.page_type(*args, **kws)
+ Lint::PageType.lint(*args, **kws)
end
# Contracts specs for file import plugin
# @example
#
@@ -81,10 +81,10 @@
# require 'pageflow/lint'
#
# module SomePlugin
# Pageflow::Lint.file_import(SomePLugin.file_import)
# end
- def self.file_import(*args)
- Lint::FileImport.lint(*args)
+ def self.file_import(*args, **kws)
+ Lint::FileImport.lint(*args, **kws)
end
end
end