spec/analects/library_spec.rb in analects-0.3.1 vs spec/analects/library_spec.rb in analects-0.4.0
- old
+ new
@@ -6,10 +6,10 @@
describe Analects::Library do
subject(:library) {
described_class.new(options)
}
- let(:data_dir) { File.join(Dir.tmpdir, 'analects-' + SecureRandom.hex(16)) }
+ let(:data_dir) { Pathname(Dir.tmpdir).join('analects-' + SecureRandom.hex(16)) }
let(:options) {
{ data_dir: data_dir }
}
context 'with a data_dir specified' do