Sha256: 9f279f67d8f2aab2b774fc63790ae85d806efc31c94c37f06a6dcf05f6ee81bc
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe 'Merb version.rb svn revision methods' do it 'should give a path to a file containing the svn revision' do Merb.svn_revision_file_path.should == File.expand_path(File.join(Dir.pwd, Merb.svn_revision_filename)) end it "should create the #{Merb.svn_revision_filename} file if it does not exist" do File.delete Merb.svn_revision_file_path Merb.svn_revision_from_file File.file?(Merb.svn_revision_file_path).should == true end it 'should not raise permissions error' do File.should_receive(:open).and_raise(Errno::EACCES) Merb.svn_revision_from_file.should_not raise_error(Errno::EACCES) end it 'should get the svn revision' do Merb.svn_revision.should > 0 end it "should get the svn revision from the #{Merb.svn_revision_filename} file" do Merb.svn_revision_from_file.should > 0 end it 'should get the same number from the helper and the file' do Merb.svn_revision.should == Merb.svn_revision_from_file end it 'should get the svn revision via git' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
merb-0.5.0 | spec/merb/version_spec.rb |
merb-0.5.1 | spec/merb/version_spec.rb |
merb-0.5.2 | spec/merb/version_spec.rb |
merb-0.5.3 | spec/merb/version_spec.rb |