jakkn / nwn-devbase

Command line tool used to version control NWN module development
37 stars 17 forks source link

Add tests #7

Open jakkn opened 7 years ago

jakkn commented 7 years ago

build.rb needs test coverage.

jakkn commented 7 years ago

Challenging due to build.rb manipulating the file system. FakeFS seemed at first to be the right approach, but the scope of FakeFS is lost for system calls because FakeFS only replaces File and FileUtils for the running ruby thread. As long as Rake commands are issued along the lines of system "rake", "--rakefile", "pack.rake" this approach will not work.