rspec-conductor 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rspec/conductor/version.rb +1 -1
- data/lib/tasks/rspec_conductor.rake +3 -3
- 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: 9ef8f45a737aff80987f79da1904c6c5bf208eb633dff2ba893b690369534901
|
|
4
|
+
data.tar.gz: f8905660585569d61e9c939130a6e3ba6ae7f63b1821ea263f3d2a64fec76db2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46a26446160ea0de967ce28421077bc792cd0bdbe5ce1f772890f7104b2ae57fd3444d257d1564ea5067926c211d98b32bc002c23a8e54dda93ad4380dcbf9d6
|
|
7
|
+
data.tar.gz: 145ae95cbdd382066b8ba7ccd909ec849a1a19b283d896f86db5584cafdb8cf88b0aa5ad45270a8dce427932f38cc79d9a2f803e1f29a9333a9a160f725e0286
|
data/CHANGELOG.md
CHANGED
|
@@ -43,8 +43,8 @@ module RSpec
|
|
|
43
43
|
def db_configs
|
|
44
44
|
reload_database_configuration!
|
|
45
45
|
|
|
46
|
-
configs = ::ActiveRecord::Base.configurations.configs_for(env_name: Rails.env)
|
|
47
|
-
raise ArgumentError, "could not find or parse configuration for the env #{Rails.env}" unless configs.any?
|
|
46
|
+
configs = ::ActiveRecord::Base.configurations.configs_for(env_name: ::Rails.env)
|
|
47
|
+
raise ArgumentError, "could not find or parse configuration for the env #{::Rails.env}" unless configs.any?
|
|
48
48
|
|
|
49
49
|
configs
|
|
50
50
|
end
|
|
@@ -99,7 +99,7 @@ module RSpec
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
def reload_database_configuration!
|
|
102
|
-
parsed_yaml = Rails.application.config.load_database_yaml
|
|
102
|
+
parsed_yaml = ::Rails.application.config.load_database_yaml
|
|
103
103
|
raise ArgumentError, "could not find database yaml or the yaml is empty" if parsed_yaml.empty?
|
|
104
104
|
|
|
105
105
|
::ActiveRecord::Base.configurations = ::ActiveRecord::DatabaseConfigurations.new(parsed_yaml)
|