Skip to content
Browse files

Move code over to a helper.

  • Loading branch information...
1 parent ec458e4 commit 17f86f783e57fee8db58ec705c1a7197333f526a @benhamill benhamill committed Apr 4, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −3 spec/muddle_spec.rb
  2. +6 −0 spec/spec_helper.rb
View
4 spec/muddle_spec.rb
@@ -2,9 +2,7 @@
describe Muddle do
before(:each) do
- %W(@config @parser).each do |var|
- Muddle.instance_variable_set(var, nil)
- end
+ reset_muddle_module
end
describe ".parser" do
View
6 spec/spec_helper.rb
@@ -90,3 +90,9 @@ def email_body_with_dtd
def email_body_with_custom_dtd
File.read(File.join(File.dirname(__FILE__), 'resources', 'custom_dtd_email.html'))
end
+
+def reset_muddle_module
+ %W(@config @parser).each do |var|
+ Muddle.instance_variable_set(var, nil)
+ end
+end

0 comments on commit 17f86f7

Please sign in to comment.
Something went wrong with that request. Please try again.