Sha256: 99f5494b973ed44872a90bed81e9dd03ce7bd88c7ad12d4a4dd0c8e4535fe470
Contents?: true
Size: 585 Bytes
Versions: 4
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' require 'rubygems' require 'fileutils' describe 'Taza bin' do context 'running taza in the terminal' do specify { expect { system('taza') }.to output.to_stdout_from_any_process } end it 'should have an executable script' do skip 'Not sure this is really necessary, as this is just testing if command line returns anything. It also breaks JRuby.' path = 'spec/sandbox/generators' taza_bin = "#{File.expand_path(File.dirname(__FILE__)+'/../bin/taza')} #{path}" expect(system("ruby -c #{taza_bin} > #{null_device}")).to be true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
taza-3.0.0 | spec/generators/taza_bin_spec.rb |
taza-2.1.0 | spec/generators/taza_bin_spec.rb |
taza-2.0 | spec/generators/taza_bin_spec.rb |
taza-1.0 | spec/generators/taza_bin_spec.rb |