Created
June 17, 2010 19:49
-
-
Save duff/442682 to your computer and use it in GitHub Desktop.
Temporary hack to whack the Riak database between cuke runs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Ripple | |
module Document | |
def self.included(mod) | |
all << mod | |
end | |
def self.all | |
@document_models ||= [] | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After do | |
Ripple::Document.all.each { |each| each.destroy_all } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment