couch_potato 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/couch_potato/railtie.rb +1 -0
- data/lib/couch_potato/version.rb +1 -1
- data/spec/railtie_spec.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d0a16b09e8b1a251f8639d5960980da2b50f1deb41a619253322013d24b12ae
|
4
|
+
data.tar.gz: 8b6e6c2a0b8e81399a1bd5addf528583b157109971948e59f9a2cf96dcd858d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7ed319a85dbe37898f1892ff355b6e3f0f7a559b86f4f31b8d59aa69417e403e075f41f236dadc3c46f317e29526049804607767e44a8ecddc8aeff1ecf128
|
7
|
+
data.tar.gz: a8655290fc89f80185b21ec5722867644dacd2c7990779df325bb0ab0697156a213a0a2e6d7d492a48d1ed8dbc0a0b2a09f5aeb61f48b3c8a1e85a10236d75cc
|
data/CHANGES.md
CHANGED
data/lib/couch_potato/railtie.rb
CHANGED
data/lib/couch_potato/version.rb
CHANGED
data/spec/railtie_spec.rb
CHANGED
@@ -100,4 +100,19 @@ describe "railtie" do
|
|
100
100
|
|
101
101
|
CouchPotato.rails_init
|
102
102
|
end
|
103
|
+
|
104
|
+
it 'processes aliases' do
|
105
|
+
allow(File).to receive_messages(:read => <<~YAML)
|
106
|
+
default: &default
|
107
|
+
default_language: :javascript
|
108
|
+
test:
|
109
|
+
<<: *default
|
110
|
+
database: couch_potato_test
|
111
|
+
YAML
|
112
|
+
|
113
|
+
expect(CouchPotato::Config).to receive(:default_language=).with(:javascript)
|
114
|
+
expect(CouchPotato::Config).to receive(:database_name=).with('couch_potato_test')
|
115
|
+
|
116
|
+
CouchPotato.rails_init
|
117
|
+
end
|
103
118
|
end
|