Sha256: f41b10ea4ccabe51cdb069e8b47636f7e1946681c5482a7cf4c4faf654bfda5a
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe TinyRails::CLI do before { FileUtils.rm_rf '.tmp' if Dir.exist?('.tmp') } context 'scaffold' do subject do output = capture(:stdout) { described_class.start(['.tmp']) } output.gsub(/\e\[(\d+)m/, '') end described_class.templates.each do |file| it { should =~ /create\s+\.tmp\/#{Regexp.escape file}/ } end described_class.executables.each do |script| it { should =~ /chmod\s+\.tmp\/#{Regexp.escape script}/ } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tiny-rails-0.0.1 | spec/cli_spec.rb |