From 1900d706e433dd275ee86992c99ecca32949edc3 Mon Sep 17 00:00:00 2001 From: "rff.rff" Date: Wed, 23 Jan 2008 23:59:40 +0100 Subject: allows multiple arguments to #describe to allow specialized behaviours such as describe Queue,'empty' describe Queue,'full' Some tests for this and manveru's latest patch are included darcs-hash:20080123225940-16231-8d28039e863f52902c390f666b710c5a1d59cf53.gz --- lib/bacon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bacon.rb b/lib/bacon.rb index fd0f9ba..72342a3 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -232,7 +232,7 @@ end module Kernel private - def describe(name, &block) Bacon::Context.new(name.to_s, &block) end + def describe(*args, &block) Bacon::Context.new(args.join(' '), &block) end def shared(name, &block) Bacon::Shared[name] = block end end -- cgit 1.4.1