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

- old
+ new

@@ -1,17 +1,19 @@ 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 .ruby-version' do - subject.options = { 'framework' => 'jekyll' } - expect { subject.generate 'dummy-app' }.to produce_file 'dummy_app/.ruby-version' - expect('dummy_app/.ruby-version').to have_content ( - """ - /[0-9]*\\.[0-9]*\\.[0-9]*/ - """ - ) + it 'generates a .ruby-version' do + subject.options = { 'framework' => 'jekyll' } + expect { subject.generate 'dummy-app' }.to produce_file 'dummy_app/.ruby-version' + expect('dummy_app/.ruby-version').to have_content ( + """ + /[0-9]*\\.[0-9]*\\.[0-9]*/ + """ + ) + end end end end