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.
- checksums.yaml +4 -4
- data/lib/data_seeder/loader.rb +1 -0
- data/lib/data_seeder/version.rb +1 -1
- data/test/dummy/log/development.log +1 -0
- data/test/dummy/log/test.log +7340 -0
- data/test/models/data_seeder/loader_test.rb +4 -3
- metadata +2 -2
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|