spec/cli/rbenv_spec.rb in skellington-0.4.3 vs spec/cli/rbenv_spec.rb in skellington-0.4.4

- old
+ new

@@ -3,11 +3,10 @@ let :subject do described_class.new end it 'generates a .ruby-version' do - subject.generate 'dummy_app' - expect(File).to exist 'dummy_app/.ruby-version' + 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]*/ """ )