spec/jekyll/cli_spec.rb in skellington-0.8.9 vs spec/jekyll/cli_spec.rb in skellington-0.9.0.pre.rc1
- old
+ new
@@ -1,21 +1,22 @@
module Skellington
describe CLI do
- let :subject do
- described_class.new
- end
+ context 'jekyll' do
+ let :subject do
+ described_class.new
+ end
- it 'generates correct output' do
- subject.options = { 'framework' => 'jekyll' }
- expect { subject.generate 'dummy-app' }.to output(/
+ it 'generates correct output' do
+ subject.options = { 'framework' => 'jekyll' }
+ expect { subject.generate 'dummy-app' }.to output(/
Your new Jekyll site DummyApp has been created
\(Note that 'dummy-app' has been changed to 'dummy_app' because Ruby finds '-'s troubling\)
Now do
- cd dummy_app
+ cd \.\/dummy_app
bundle
bundle exec jekyll serve
which will launch the site \(at http:\/\/localhost:4000\/dummy-app\/\)
@@ -24,8 +25,18 @@
git add .
git commit -m 'First commit'
You should also fill in your name in LICENSE.md
/).to_stdout
+ end
+
+ context 'non-local path' do
+ it 'generates correct output' do
+ subject.options = { 'framework' => 'jekyll' }
+ expect { subject.generate 'some/path/dummy-app' }.to output(/
+ cd some\/path\/dummy_app
+/).to_stdout
+ end
+ end
end
end
end