You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/10/01 16:14:07 UTC
svn commit: r700778 - /incubator/buildr/trunk/spec/core/generate_spec.rb
Author: lacton
Date: Wed Oct 1 07:14:06 2008
New Revision: 700778
URL: http://svn.apache.org/viewvc?rev=700778&view=rev
Log:
Sanity check for Buildr::Generate
Modified:
incubator/buildr/trunk/spec/core/generate_spec.rb
Modified: incubator/buildr/trunk/spec/core/generate_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/core/generate_spec.rb?rev=700778&r1=700777&r2=700778&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/core/generate_spec.rb (original)
+++ incubator/buildr/trunk/spec/core/generate_spec.rb Wed Oct 1 07:14:06 2008
@@ -20,6 +20,11 @@
describe Buildr::Generate do
describe 'Generated buildfile' do
+ it 'should be a legal buildfile' do
+ File.open('buildfile', 'w') { |file| file.write Generate.from_directory(true).join("\n") }
+ lambda { Buildr.application.run }.should_not raise_error
+ end
+
it 'should not contain NEXT_VERSION because it was removed in buildr 1.3.3' do
buildfile = Generate.from_directory(true)
buildfile.each { |line| line.should_not include('NEXT_VERSION')}