rails-env 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-env/version.rb +1 -1
- data/lib/rails-env.rb +3 -3
- data/test/test_helper.rb +1 -0
- data/test/unit/rails_test.rb +5 -0
- 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: 090040b7adbed72a4e3cf77672bc5ab2d35d8cfd
|
4
|
+
data.tar.gz: 7791272c42622b829b5b5d7a409b96f2b16b75f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe41ee71ac13c65069d27a107c868dae6e895f0adfdb5856cc6f244d82c70e8f6f89bd17a952736d26173adaf71f49fd0acffed5cb737a04ecc26d87f9dc9a6d
|
7
|
+
data.tar.gz: 1ed4c557662ce1858fd7414b0ad66b8613bac26981b904f484d4c1cb7e2a6715b3eed21942c34f3e9d2557db173b9d81b30fdaf847a62aba98efe3669a42be8b
|
data/lib/rails-env/version.rb
CHANGED
data/lib/rails-env.rb
CHANGED
@@ -23,11 +23,11 @@ module RailsEnv
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.propagate_configuration!
|
26
|
-
propagate(:action_mailer, "::ActionMailer::Base")
|
27
|
-
propagate(:active_record, "::ActiveRecord::Base")
|
28
|
-
propagate(:active_job, "::ActiveJob::Base")
|
29
26
|
propagate(:action_controller, "::ActionController::Base")
|
27
|
+
propagate(:action_mailer, "::ActionMailer::Base")
|
30
28
|
propagate(:action_view, "::ActionView::Base")
|
29
|
+
propagate(:active_job, "::ActiveJob::Base")
|
30
|
+
propagate(:active_record, "::ActiveRecord::Base")
|
31
31
|
propagate(:time_zone, "::Time", :zone)
|
32
32
|
propagate_i18n
|
33
33
|
end
|
data/test/test_helper.rb
CHANGED
data/test/unit/rails_test.rb
CHANGED
@@ -10,6 +10,7 @@ class ConfigPropagationTest < Minitest::Test
|
|
10
10
|
config.i18n.available_locales = ["pt-BR"]
|
11
11
|
config.i18n.default_locale = "pt-BR"
|
12
12
|
config.action_view.raise_on_missing_translations = true
|
13
|
+
config.active_job.queue_adapter = :test
|
13
14
|
end
|
14
15
|
end
|
15
16
|
|
@@ -46,4 +47,8 @@ class ConfigPropagationTest < Minitest::Test
|
|
46
47
|
test "sets raise on missing translations" do
|
47
48
|
assert ActionView::Base.raise_on_missing_translations
|
48
49
|
end
|
50
|
+
|
51
|
+
test "sets queue adapter" do
|
52
|
+
assert_kind_of ActiveJob::QueueAdapters::TestAdapter, ActiveJob::Base.queue_adapter
|
53
|
+
end
|
49
54
|
end
|