spec/jekyll/root_files/gemfile_spec.rb in skellington-0.8.9 vs spec/jekyll/root_files/gemfile_spec.rb in skellington-0.9.0.pre.rc1

- old
+ new

@@ -1,22 +1,24 @@ module Skellington describe CLI do - let :subject do - described_class.new - end + context 'jekyll' do + let :subject do + described_class.new + end - it 'generates a Gemfile' do - subject.options = { 'framework' => 'jekyll' } - subject.generate 'dummy-app' - expect('dummy_app/Gemfile').to have_content ( - """ - source 'https://rubygems.org' + it 'generates a Gemfile' do + subject.options = { 'framework' => 'jekyll' } + subject.generate 'dummy-app' + expect('dummy_app/Gemfile').to have_content ( + """ + source 'https://rubygems.org' - /ruby '[0-9]*\\.[0-9]*\\.[0-9]*'/ + /ruby '[0-9]*\\.[0-9]*\\.[0-9]*'/ - gem 'github-pages' - gem 'rake' - """ - ) + gem 'github-pages' + gem 'rake' + """ + ) + end end end end