mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-29 05:05:37 +08:00
Add context method as describe alias
This commit is contained in:
@@ -586,6 +586,8 @@ module Bacon
|
||||
def raise?(*args, &block); block.raise?(*args); end
|
||||
def throw?(*args, &block); block.throw?(*args); end
|
||||
def change?(*args, &block); block.change?(*args); end
|
||||
|
||||
alias_method :context, :describe
|
||||
end
|
||||
end
|
||||
|
||||
@@ -643,6 +645,8 @@ module Kernel
|
||||
private
|
||||
def describe(*args, &block) Bacon::Context.new(args.join(' '), &block) end
|
||||
def shared(name, &block) Bacon::Shared[name] = block end
|
||||
|
||||
alias_method :context, :describe
|
||||
end
|
||||
|
||||
class Should
|
||||
|
||||
Reference in New Issue
Block a user