Sha256: 3bad547b59d9fe8a141d4d0a7651b16bc9eeb09ac8693c1e9ea733fd6ef35240
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = Tj3Daemon_spec.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011 # by Chris Schlaeger <chris@linux.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'rubygems' require 'support/DaemonControl' class TaskJuggler describe Tj3Daemon do include DaemonControl before(:each) do startDaemon end after(:each) do stopDaemon end it 'should be startable and stopable' do res = stdIoWrapper do Tj3Client.new.main(%w( --unsafe --silent status )) end res.returnValue.should == 0 res.stdErr.should == '' res.stdOut.should match /No projects registered/ end it 'should be able to load a project' do prj = 'project foo "Foo" 2011-03-14 +1d task "Foo"' res = stdIoWrapper(prj) do Tj3Client.new.main(%w( --unsafe --silent add . )) end res.returnValue.should == 0 res.stdErr.should match /Project foo loaded/ end end end
Version data entries
5 entries across 5 versions & 1 rubygems