Permalink
Browse files

Ensure constant defined only once

  • Loading branch information...
1 parent 4c890b5 commit 7f6f1533d72edc9a1149da5cbbaf5956c70b860d @mikel committed Nov 19, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 spec/spec_helper.rb
View
@@ -10,13 +10,16 @@
SPEC_ROOT = File.join(File.dirname(__FILE__))
end
+unless defined?(MAIL_SPEC_SUITE_RUNNING)
+ # Used to force compile all the parsers on each spec suite load
+ MAIL_SPEC_SUITE_RUNNING = true
+end
+
require 'rspec'
require File.join(File.dirname(__FILE__), 'matchers', 'break_down_to')
-# Used to force compile all the parsers on each spec suite load
-MAIL_SPEC_SUITE_RUNNING = true
-
require 'mail'
+
STDERR.puts("Running Specs for Mail Version #{Mail::VERSION::STRING}")
RSpec.configure do |c|

0 comments on commit 7f6f153

Please sign in to comment.