Skip to content

Instantly share code, notes, and snippets.

@gabrielg
Created December 15, 2009 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielg/257256 to your computer and use it in GitHub Desktop.
Save gabrielg/257256 to your computer and use it in GitHub Desktop.
diff --git a/lib/riot/context.rb b/lib/riot/context.rb
index a1231d7..8532ccd 100644
--- a/lib/riot/context.rb
+++ b/lib/riot/context.rb
@@ -20,7 +20,7 @@ module Riot
def asserts_topic; asserts("topic") { topic }; end
def context(description, &definition)
- @contexts << Context.new("#{@description} #{description}", self, &definition)
+ @contexts << self.class.new("#{@description} #{description}", self, &definition)
end
def run(reporter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment