Sha256: ac0b4d45415be010cee4cdd816e8429c5ab3d7c531cff1f2a7887721b46d08d2
Contents?: true
Size: 754 Bytes
Versions: 11
Compression:
Stored size: 754 Bytes
Contents
module Skellington describe CLI do let :subject do described_class.new end it 'has a version' do expect { subject.version }.to output(/^skellington version #{VERSION}$/).to_stdout end it 'generates correct output' do expect { subject.generate 'hyphenated-name' }.to output(/ Your new Sinatra app HyphenatedName has been created \(Note that 'hyphenated-name' has been changed to 'hyphenated_name' because Ruby finds '-'s troubling\) Now do cd hyphenated_name bundle bundle exec rake And presuming that passes OK git add . git commit -m 'First commit' Then try bundle exec rake run /).to_stdout expect(File).to exist 'hyphenated_name/lib/hyphenated_name.rb' end end end
Version data entries
11 entries across 11 versions & 1 rubygems