codenamev-baseball-stats 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/baseball_stats/database.rb +1 -1
- data/lib/baseball_stats/version.rb +1 -1
- data/spec/lib/database_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39b593837acffbc483eef8ac4e6be218761b1033
|
4
|
+
data.tar.gz: 2b67ab2c759263e7b28d75f2d2d8049c52e4a9c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a0a4a5422ce2dac9d50228b3b70b5413a78f2a0ee11ba36f7896a6c1b8116e0bb954abdfce8046895cea551c03a024b1ca3a9177f8449369a1aa2b1bb7210e
|
7
|
+
data.tar.gz: 4bcc439a1ded3d60ff01c4e62ffc0d368be612dfa86fc45ad32ea7d96404dc9ec7e41eae9b5603454a508f841238d1c9bcde41c8fa8116978889e693c2fe4357
|
@@ -27,7 +27,7 @@ module BaseballStats
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def connection
|
30
|
-
::ActiveRecord::Base.logger = Logger.new("log
|
30
|
+
::ActiveRecord::Base.logger = Logger.new(File.join(@root_path, "log", "#{self.env}.log"))
|
31
31
|
::ActiveRecord::Base.establish_connection(configuration[self.env])
|
32
32
|
end
|
33
33
|
end
|
data/spec/lib/database_spec.rb
CHANGED
@@ -33,7 +33,7 @@ describe BaseballStats::Database do
|
|
33
33
|
subject { BaseballStats::Database.connection }
|
34
34
|
|
35
35
|
it 'estabilishes a logger' do
|
36
|
-
expect(Logger).to receive(:new).with('log/test.log')
|
36
|
+
expect(Logger).to receive(:new).with(File.expand_path('../../../log/test.log', __FILE__))
|
37
37
|
subject
|
38
38
|
end
|
39
39
|
|