1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
# Copyright 2010-present Greg Hurrell. All rights reserved.
# Licensed under the terms of the BSD 2-clause license.
require 'spec_helper'
describe CommandT::Scanner::FileScanner do
before do
dir = File.join(File.dirname(__FILE__), '..', '..', '..', 'fixtures')
@scanner = CommandT::Scanner::FileScanner.new(dir)
end
describe 'flush method' do
it 'forces a rescan on next call to paths method' do
expect { @scanner.flush }.
to change { @scanner.instance_variable_get('@paths').object_id }
end
end
end
|