summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorrff.rff <rff.rff@gmail.com>2008-01-23 23:59:40 +0100
committerrff.rff <rff.rff@gmail.com>2008-01-23 23:59:40 +0100
commit1900d706e433dd275ee86992c99ecca32949edc3 (patch)
treea73b4bd6f8711feae5507612bf423e3b2c35ac30 /lib
parentfe569b343f2522f2d0ba965c4c54b8aac695f02e (diff)
downloadbacon-1900d706e433dd275ee86992c99ecca32949edc3.tar.gz
bacon-1900d706e433dd275ee86992c99ecca32949edc3.tar.xz
bacon-1900d706e433dd275ee86992c99ecca32949edc3.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/bacon.rb2
1 files changed, 1 insertions, 1 deletions
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