data_seeder 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,17 +7,18 @@ describe DataSeeder::Loader, :model do
7
7
  before do
8
8
  @name = 'test_loader_logger'
9
9
  @seed_dirs = setup_seed_dirs(@name, 'states_txt')
10
+ @logfile = Rails.root.join('tmp', "loader_test.log.#{$$}")
10
11
  end
11
12
 
12
13
  after do
13
14
  cleanup_seed_dir(@name)
15
+ FileUtils.rm(@logfile)
14
16
  end
15
17
 
16
18
  it 'should load seed files' do
17
- logfile = Rails.root.join('tmp', "loader_test.log.#{$$}")
18
- loader = DataSeeder::Loader::Txt.new(logger: Logger.new(logfile))
19
+ loader = DataSeeder::Loader::Txt.new(logger: Logger.new(@logfile))
19
20
  loader.logger.info('hello foobar')
20
- buf = File.read(logfile)
21
+ buf = File.read(@logfile)
21
22
  assert buf.match(/hello foobar/)
22
23
  end
23
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_seeder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Pardee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails