Sha256: 6f697bafbdeb8a5aa8679c398edd054dbfab2e1432f08b13df9ddf7a6272c78b
Contents?: true
Size: 871 Bytes
Versions: 60
Compression:
Stored size: 871 Bytes
Contents
require 'helper' module Nutella class TestCurrentAppUtils < MiniTest::Test # def setup # Dir.chdir NUTELLA_HOME # Nutella.execute_command( 'new', ['test_app'] ) # Dir.chdir "#{NUTELLA_HOME}test_app" # end # # # should 'return true if the dir is a nutella app' do # assert Nutella.current_app.exist? # end # # should 'return false if the dir is not a nutella app' do # Dir.chdir NUTELLA_HOME # refute Nutella.current_app.exist? # end # # should 'return the correct version of nutella as read from the app configuration file' do # assert_equal File.open("#{NUTELLA_HOME}VERSION", "rb").read, Nutella.current_app.config['nutella_version'] # end # # # def teardown # FileUtils.rm_rf "#{NUTELLA_HOME}test_app" # Dir.chdir NUTELLA_HOME # end end end
Version data entries
60 entries across 60 versions & 1 rubygems