spec/lib/new/cli_spec.rb in new-0.0.11 vs spec/lib/new/cli_spec.rb in new-0.0.12

- old
+ new

@@ -38,10 +38,13 @@ it 'should create .new dir' do expect(Dir.exists?(root('.tmp', '.new'))).to be_true end it 'should create .new file' do - expect(File.exists?(root('.tmp', '.new', '.new'))).to be_true + expect(File.exists?(root('.tmp', '.new', New::CONFIG_FILE))).to be_true + + # Check that the keys are properly formatted in the yaml file + expect(File.read(root('.tmp', '.new', New::CONFIG_FILE))).to match /^version: 0.0.0$/ end it 'should create an empty templates & tasks dir' do expect(Dir.exists?(root('.tmp', '.new', 'templates'))).to be_true expect(Dir.exists?(root('.tmp', '.new', 'tasks'))).to be_true