Browse files

Now the both values are stored, but i.e. `controller` method, created…

… anonymouus controller in corresponding example group, redefines only :described_class, but later we try to get `described_class` it examples to instantiate anonymous controller and got :describes value. Described class chould be taken first.
  • Loading branch information...
pyromaniac committed Jan 29, 2012
1 parent 8e8fb2b commit ffeaf6201f13af91e723757445a661dde2fd4968
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/core/metadata.rb
@@ -102,8 +102,8 @@ module GroupMetadataHash
def described_class
container_stack.each do |g|
- return g[:describes] if g.has_key?(:describes)
return g[:described_class] if g.has_key?(:described_class)
+ return g[:describes] if g.has_key?(:describes)
container_stack.reverse.each do |g|

0 comments on commit ffeaf62

Please sign in to comment.