Permalink
Browse files

Clean up @options and @debug after each spec to prevent cross-pollina…

…tion
  • Loading branch information...
1 parent 846b943 commit 0fe66b78bf25e63d79a2faaec9aef120a4ae358d @kballard kballard committed May 27, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/spec_helper.rb
View
@@ -100,6 +100,11 @@ module GitHub
end
end
+ configuration.prepend_after(:each) do
+ GitHub.instance_variable_set :'@options', nil
+ GitHub.instance_variable_set :'@debug', nil
+ end
+
configuration.prepend_before(:all) do
self.class.send :include, Spec::Example::ExampleGroupSubclassMethods
end

0 comments on commit 0fe66b7

Please sign in to comment.