Sha256: 8e68a4586802ae64ef7c46ecfc6d45e6704e780e0efafa50316837c647e9163c
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
require File.expand_path('../../../../spec/helper', __FILE__) require __DIR__('../../../lib/ramaze/bin/runner') require 'open3' describe('Ramaze::Bin::Start') do it('Should show a help message') do help = `#{Ramaze::BINPATH} start -h`.strip help.include?(Ramaze::Bin::Start::Banner).should === true end it('Start using a directory') do output = '' Open3.popen3(Ramaze::BINPATH, 'start', Ramaze::BIN_APP) do |sin, sout, serr| output += serr.gets(100).strip serr.close end output.should.match /INFO\s+WEBrick/ end it('Start using a file') do output = '' path = File.join(Ramaze::BIN_APP, 'config.ru') Open3.popen3(Ramaze::BINPATH, 'start', path) do |sin, sout, serr| output += serr.gets(100).strip serr.close end output.should.match /INFO\s+WEBrick/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2011.07.25 | spec/ramaze/bin/start.rb |