Changeset 1217
- Timestamp:
- 01/08/08 20:00:01 (9 months ago)
- Files:
-
- trunk/lib/merb/version.rb (modified) (1 diff)
- trunk/spec/merb/version_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/version.rb
r1179 r1217 17 17 18 18 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 24 21 end 25 22 trunk/spec/merb/version_spec.rb
r1179 r1217 11 11 Merb.svn_revision_from_file 12 12 File.file?(Merb.svn_revision_file_path).should == true 13 end14 15 it 'should not try to create the file if it already exists' do16 File.should_receive(:open).never17 Merb.svn_revision_from_file18 13 end 19 14
