mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
[spec] Deprecate block to the tests method of the view test helpers.
This commit is contained in:
@@ -168,6 +168,9 @@ module Bacon
|
||||
# * :navigation => true
|
||||
# * :tab => true
|
||||
def tests(controller_class, options = {}, &block)
|
||||
if block
|
||||
puts " \e[1mWARNING!\e[0m Passing a block to the `tests` method is deprecated and will be removed in an upcoming release. Instead, simply define a `before` filter above your call to `tests`. For more information see: http://www.rubymotion.com/developer-center/articles/testing/#_configuring_your_context"
|
||||
end
|
||||
@controller_class, @options, @after_created_block = controller_class, options, block
|
||||
extend Bacon::Functional::API
|
||||
extend Bacon::Functional::ContextExt
|
||||
|
||||
Reference in New Issue
Block a user