spec/generators/taza_bin_spec.rb in taza-0.9.2.1 vs spec/generators/taza_bin_spec.rb in taza-1.0

- old
+ new

@@ -1,20 +1,16 @@ require 'spec_helper' require 'rubygems' require 'fileutils' -describe "Taza bin" do - - it 'runs from the terminal' do - output = system("taza") - expect(output).to be_true - +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 - pending "Not sure this is really necessary, as this is just testing if command line returns anything. It also breaks JRuby." + 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}" - system("ruby -c #{taza_bin} > #{null_device}").should be_true + expect(system("ruby -c #{taza_bin} > #{null_device}")).to be true end - end