Permalink
Browse files

Typo causes error when defining should "..." style should_eventuallys…

… from a class method.
  • Loading branch information...
1 parent 33b2de6 commit acbbe7d8de5e5a1a89e3cc382de1e0f4b9f96f72 @tomlea tomlea committed May 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/shoulda/context.rb
View
@@ -59,7 +59,7 @@ module ClassMethods
def should(name, options = {}, &blk)
if Shoulda.current_context
- block_given? ? Shoulda.current_context.should(name, options, &blk) : Should.current_context.should_eventually(name)
+ block_given? ? Shoulda.current_context.should(name, options, &blk) : Shoulda.current_context.should_eventually(name)
else
context_name = self.name.gsub(/Test/, "")
context = Shoulda::Context.new(context_name, self) do

0 comments on commit acbbe7d

Please sign in to comment.