Sha256: cc9969e5ae218392475b808e213e8acaa82e06ef0361a2ef43cc3f873f952b52
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' describe TinyRails::Commands::New do before do FileUtils.rm_rf '.tmp' if Dir.exist?('.tmp') @original_wd = Dir.pwd end after { FileUtils.cd @original_wd } context 'scaffold' do subject do output = capture(:stdout) { described_class.start(['.tmp']) } output.gsub(/\e\[(\d+)m/, '') end %w( .gitignore Gemfile boot.rb application_controller.rb index.html.erb server config.ru ).each do |file| it { should =~ /create\s+#{Regexp.escape file}/ } end it { should =~ /chmod\s+server/ } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tiny-rails-0.1.1 | spec/commands/new_spec.rb |
tiny-rails-0.1.0 | spec/commands/new_spec.rb |