Sha256: 5483cc399d1076c35b7e05c843ceeb0b1d0768251cd53e02e6bf2d67ea1ca393
Contents?: true
Size: 719 Bytes
Versions: 6
Compression:
Stored size: 719 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' /).to_stdout expect(File).to exist 'hyphenated_name/lib/hyphenated_name.rb' end end end
Version data entries
6 entries across 6 versions & 1 rubygems