From 862244cf77543af841c67e380ef2ee160fed1d76 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Sat, 20 Mar 2010 04:19:18 -0400 Subject: methods in a context should serve as behavior that is inherited by sibling contexts --- lib/bacon.rb | 3 +++ test/spec_bacon.rb | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/lib/bacon.rb b/lib/bacon.rb index ad4df44..47dc31e 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -210,6 +210,9 @@ module Bacon def describe(*args, &block) context = Bacon::Context.new(args.join(' '), &block) + (parent_context = self).methods(false).each {|e| + class<