Browse files

Fix warning due to a constant already defined in tests

  • Loading branch information...
1 parent 694198c commit 5d88f67aa71fca31a7cad46b2dfd579975669dc7 @ldnunes ldnunes committed Apr 12, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/spec_helper.rb
View
4 spec/spec_helper.rb
@@ -4,7 +4,9 @@
require 'lib/staticmatic'
-TEST_SITE_PATH = File.expand_path(File.join(File.dirname(__FILE__), "sandbox", "test_site"))
+unless defined? TEST_SITE_PATH
+ TEST_SITE_PATH = File.expand_path(File.join(File.dirname(__FILE__), "sandbox", "test_site"))
+end
Spec::Runner.configure do |config|
end

0 comments on commit 5d88f67

Please sign in to comment.