Commit 413d59beb22289963a47e3c2f952b4c9b9a1db7d

Authored by Antonio Terceiro
1 parent dcb88edd

Silent annoying warning

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
test/noosfero_doc_test.rb
1 module Noosfero::DocTest 1 module Noosfero::DocTest
2 2
3 - ROOT = File.join(Rails.root, "test", "tmp", "doc") 3 + unless defined?(ROOT)
  4 + ROOT = File.join(Rails.root, "test", "tmp", "doc")
  5 + end
4 6
5 def create_doc(section, topic, language, title, body = nil) 7 def create_doc(section, topic, language, title, body = nil)
6 dir = File.join(ROOT, section) 8 dir = File.join(ROOT, section)