spec/cukedep/application_spec.rb in cukedep-0.1.06 vs spec/cukedep/application_spec.rb in cukedep-0.1.07

- old
+ new

@@ -30,11 +30,11 @@ # --setup option creates the config file then stops the application expect { subject.run!(['--setup'])}.to raise_error(SystemExit) # Check that the config file was effectively created. - expect { File.exist?(Cukedep::YMLFilename) }.to be_true + expect(File.exist?(Cukedep::YMLFilename)).to be true created_config = Config.load_cfg(Cukedep::YMLFilename) expect(created_config).to eq(Config.default) # Re-run again with --setup option. # It should ask permission for overwriting @@ -50,10 +50,10 @@ end it 'should complain in absence of project dir' do # Start state: no config File.delete(Cukedep::YMLFilename) if File.exist?(Cukedep::YMLFilename) - expect(File.exist?(Cukedep::YMLFilename)).to be_false + expect(File.exist?(Cukedep::YMLFilename)).to be_falsey # Create default config expect { subject.run!(['--setup'])}.to raise_error(SystemExit) err = StandardError \ No newline at end of file