test/functional/generator.rb in nephos-server-0.6.4 vs test/functional/generator.rb in nephos-server-0.6.5
- old
+ new
@@ -21,12 +21,16 @@
assert(File.exists? "/tmp/nephos-server-test/Gemfile")
assert(File.exists? "/tmp/nephos-server-test/routes.rb")
assert(Dir.exists? "/tmp/nephos-server-test/app")
gemfile_data = File.read("/tmp/nephos-server-test/Gemfile").split("\n")
assert(gemfile_data.include? "gem 'nephos'")
+
+ # if connected to internet only
+ assert(File.exists? "/tmp/nephos-server-test/Gemfile.lock")
gemfile_lock_data = File.read("/tmp/nephos-server-test/Gemfile.lock").split
assert(gemfile_lock_data.include? "nephos")
assert(gemfile_lock_data.include? "nephos-server")
+
`rm -rf /tmp/nephos-server-test 2> /tmp/null`
end
def test_generator_controller
`rm -f app/test_controller.rb`