buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lac...@apache.org
Subject svn commit: r690730 - /incubator/buildr/trunk/spec/build_spec.rb
Date Sun, 31 Aug 2008 16:58:34 GMT
Author: lacton
Date: Sun Aug 31 09:58:34 2008
New Revision: 690730

URL: http://svn.apache.org/viewvc?rev=690730&view=rev
Log:
BUILDR-141 Removed unneeded qualifications

Modified:
    incubator/buildr/trunk/spec/build_spec.rb

Modified: incubator/buildr/trunk/spec/build_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/build_spec.rb?rev=690730&r1=690729&r2=690730&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/build_spec.rb (original)
+++ incubator/buildr/trunk/spec/build_spec.rb Sun Aug 31 09:58:34 2008
@@ -228,32 +228,32 @@
 
 describe Buildr::Release, '#check' do
   before do
-    Buildr::Svn.stub!(:uncommitted_files).and_return('')
+    Svn.stub!(:uncommitted_files).and_return('')
   end
   
   it 'should accept to release from the trunk' do
-    Buildr::Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/trunk')
+    Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/trunk')
     lambda { Release.check }.should_not raise_error
   end
   
   it 'should accept to release from a branch' do
-    Buildr::Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/branches/1.0')
+    Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/branches/1.0')
     lambda { Release.check }.should_not raise_error
   end
   
   it 'should reject releasing from a tag' do
-    Buildr::Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/tags/1.0.0')
+    Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/tags/1.0.0')
     lambda { Release.check }.should raise_error(RuntimeError, "SVN URL must contain 'trunk'
or 'branches/...'")
   end
   
   it 'should reject a non standard repository layout' do
-    Buildr::Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/bar')
+    Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/bar')
     lambda { Release.check }.should raise_error(RuntimeError, "SVN URL must contain 'trunk'
or 'branches/...'")
   end
   
   it 'should reject an uncommitted file' do
-    Buildr::Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/trunk')
-    Buildr::Svn.stub!(:uncommitted_files).and_return('M      foo.rb')
+    Svn.stub!(:repo_url).and_return('http://my.repo.org/foo/trunk')
+    Svn.stub!(:uncommitted_files).and_return('M      foo.rb')
     lambda { Release.check }.should raise_error(RuntimeError,
       "Uncommitted SVN files violate the First Principle Of Release!\n" +
       "M      foo.rb")



Mime
View raw message