Permalink
Browse files

close #31 - reset RR situation on initialize

I don't yet understand what's going on in RR that caused the issue and
necessitated this fix yet, but it is at least fixed.
  • Loading branch information...
gus committed Apr 19, 2012
1 parent 2e2bc49 commit 0ac61bf0693d03776ea2cfddbab28d1825107a84
Showing with 7 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +5 −0 lib/riot/rr.rb
View
@@ -1,5 +1,7 @@
# @markup markdown
+* close #31 - RR seems to carry over some latent varification state between situations
+
# 0.12.5
* Remove doc for some deprecated macros: not, exists, any [charlietanskley]
View
@@ -10,6 +10,11 @@ module RR
# setup, yeardown, helper, hookup, or assertion.
class Situation < Riot::Situation
include ::RR::Adapters::RRMethods
+
+ def initialize
+ self.reset
+ super
+ end
end # Situation
# Binds the {Riot::Assertion} to RR so that successes and failures found by RR are inherently handled

0 comments on commit 0ac61bf

Please sign in to comment.