buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lac...@apache.org
Subject svn commit: r700778 - /incubator/buildr/trunk/spec/core/generate_spec.rb
Date Wed, 01 Oct 2008 14:14:07 GMT
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')}



Mime
View raw message