Sha256: c3afa5c90631db4f2fda1efaa212ebfee819138ae15b2b6d05750713945e065e

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 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
        expect(version_time).to be > @release_time
      end
    end

    context 'history file' do
      it 'has been updated since the last release' do
        history_time = File.stat('History.txt').mtime
        expect(history_time).to be > @release_time
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
reek-2.0.4 spec/gem/updates_spec.rb
reek-2.0.3 spec/gem/updates_spec.rb
reek-2.0.2 spec/gem/updates_spec.rb
reek-2.0.1 spec/gem/updates_spec.rb
reek-2.0.0 spec/gem/updates_spec.rb
reek-1.6.6 spec/gem/updates_spec.rb
reek-1.6.5 spec/gem/updates_spec.rb
reek-1.6.4 spec/gem/updates_spec.rb
reek-1.6.3 spec/gem/updates_spec.rb
reek-1.6.2 spec/gem/updates_spec.rb
reek-1.6.1 spec/gem/updates_spec.rb
reek-1.6.0 spec/gem/updates_spec.rb
reek-1.5.1 spec/gem/updates_spec.rb
reek-1.5.0 spec/gem/updates_spec.rb
reek-1.4.0 spec/gem/updates_spec.rb