Merge pull request #117 from eskatos/master

Fix if RUBYMOTION_ENV not defined again
This commit is contained in:
Jamon Holmgren
2013-06-03 11:54:32 -07:00

View File

@@ -33,7 +33,7 @@ module ProMotion
# Usage: PM.logger.log("ERROR", "message here", :red)
def log(label, message_text, color)
return if RUBYMOTION_ENV == "test"
return if defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV == "test"
color = COLORS[color] || COLORS[:default]
puts color[0] + NAME + "[#{label}] #{message_text}" + color[1]
end