Sha256: 345d94845e16f04fc7c41e1bb708475a9b52fcfc2ee1eca93fa00f8927bad283

Contents?: true

Size: 674 Bytes

Versions: 11

Compression:

Stored size: 674 Bytes

Contents

require_relative '../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

11 entries across 11 versions & 1 rubygems

Version Path
reek-3.2.1 spec/gem/updates_spec.rb
reek-3.2 spec/gem/updates_spec.rb
reek-3.1 spec/gem/updates_spec.rb
reek-3.0.4 spec/gem/updates_spec.rb
reek-3.0.3 spec/gem/updates_spec.rb
reek-3.0.2 spec/gem/updates_spec.rb
reek-3.0.1 spec/gem/updates_spec.rb
reek-3.0.0 spec/gem/updates_spec.rb
reek-2.2.1 spec/gem/updates_spec.rb
reek-2.2.0 spec/gem/updates_spec.rb
reek-2.1.0 spec/gem/updates_spec.rb