spec/generators/taza_bin_spec.rb in taza-0.9.2.0 vs spec/generators/taza_bin_spec.rb in taza-0.9.2.1
- old
+ new
@@ -1,9 +1,15 @@
require 'spec_helper'
require 'rubygems'
require 'fileutils'
-describe "Taza project generator script" do
+describe "Taza bin" do
+
+ it 'runs from the terminal' do
+ output = system("taza")
+ expect(output).to be_true
+
+ 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."
path = 'spec/sandbox/generators'
taza_bin = "#{File.expand_path(File.dirname(__FILE__)+'/../bin/taza')} #{path}"