module Skellington describe CLI do let :subject do described_class.new end it 'generates correct output' do subject.options = { 'framework' => 'jekyll' } expect { subject.generate 'dummy_app' }.to output(/ Your new Jekyll site DummyApp has been created Now do cd dummy_app bundle bundle exec jekyll serve which will launch the site \(at http:\/\/localhost:4000\/dummy_app\/\) And presuming that works OK git add . git commit -m 'First commit' You should also fill in your name in LICENSE.md /).to_stdout end end end