lib/lucid/generators/project/driver-symbiont.rb in lucid-0.0.5 vs lib/lucid/generators/project/driver-symbiont.rb in lucid-0.0.6
- old
+ new
@@ -1,4 +1,12 @@
-require 'symbiont'
-require 'symbiont/factory'
+begin
+ require 'symbiont'
+ require 'symbiont/factory'
+rescue LoadError
+ STDOUT.puts ["The Symbiont test execution library is not installed.",
+ "The driver file is currently set to use the Symbiont library but",
+ "that gem was not found. Run the following command:", "",
+ " gem install symbiont"].join("\n")
+ Kernel.exit(1)
+end
Domain(Symbiont::Factory)
\ No newline at end of file