Sha256: 9aec3ad52e796de198c6b9d723247baba486df5dbfce8260bbba2b457f8a3e7f
Contents?: true
Size: 668 Bytes
Versions: 7
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' require 'find' release_timestamp_file = 'build/.last-release' if test(?f, release_timestamp_file) describe 'updates' do before :each do @release_time = File.stat(release_timestamp_file).mtime end context 'version file' do it 'has been updated since the last release' do version_time = File.stat('lib/reek.rb').mtime (version_time > @release_time).should be_true end end context 'history file' do it 'has been updated since the last release' do history_time = File.stat('History.txt').mtime (history_time > @release_time).should be_true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems