Changeset 1217

Show
Ignore:
Timestamp:
01/08/08 20:00:01 (9 months ago)
Author:
sethrasmuss..@gmail.com
Message:

fix Merb.svn_revision_from_file and remove silly spec

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/version.rb

    r1179 r1217  
    1717     
    1818    def svn_revision_from_file 
    19       # This block should maybe be its own method 
    20       unless File.file? svn_revision_file_path 
    21         File.open svn_revision_file_path, 'w' do |f| 
    22           f.print svn_revision 
    23         end 
     19      File.open svn_revision_file_path, 'w' do |f| 
     20        f.print svn_revision 
    2421      end 
    2522       
  • trunk/spec/merb/version_spec.rb

    r1179 r1217  
    1111    Merb.svn_revision_from_file 
    1212    File.file?(Merb.svn_revision_file_path).should == true 
    13   end 
    14    
    15   it 'should not try to create the file if it already exists' do 
    16     File.should_receive(:open).never 
    17     Merb.svn_revision_from_file 
    1813  end 
    1914