rspeckled 0.0.64 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rspeckled/plugins/authentication.rb +5 -5
- data/lib/rspeckled/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0465932568a9899b59a5c4d32be8be14b32f49bc4a230d46bd82208bbe5f9cf
|
4
|
+
data.tar.gz: '0910ea97572d3992772d392a8aaeda888060426336f9c40bddfdf1a35e6bce93'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8868d7ef62250b3ea7980b2a6f45a18f7ce4e81e12b5c29b2e1f57ccf0f03a8f0fba03aae30a8c4798d3d02a67b1580328e1a25f8fea277e3be54e3a3e10c4d
|
7
|
+
data.tar.gz: ea89b89d7564066515889dcd2250e669f8fe2c28797d12cc1c57e37bad243974731dfde119fc3cf194846c45fd4d52a3214b0de57dddd31111e3ce1f5ef2a0bc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
# rubocop:disable Layout/IndentHash
|
4
4
|
RSpec.configure do |config|
|
5
|
-
config.around(:each, :
|
6
|
-
options = if example.metadata[:
|
7
|
-
example.metadata[:
|
5
|
+
config.around(:each, :authentication => lambda { |v| !!v }) do |example|
|
6
|
+
options = if example.metadata[:authentication].is_a?(Hash)
|
7
|
+
example.metadata[:authentication]
|
8
8
|
else
|
9
9
|
{
|
10
10
|
:token => {
|
11
|
-
:roles => example.metadata[:
|
11
|
+
:roles => example.metadata[:authentication],
|
12
12
|
},
|
13
13
|
}
|
14
14
|
end
|
@@ -93,7 +93,7 @@ RSpec.configure do |config|
|
|
93
93
|
instance.delete unless options[:strategy] == :instance
|
94
94
|
end
|
95
95
|
|
96
|
-
config.before(:each, :
|
96
|
+
config.before(:each, :authentication => lambda { |v| !!v }) do |_example|
|
97
97
|
request.env['X_JSON_WEB_TOKEN'] = @token_data
|
98
98
|
end
|
99
99
|
end
|
data/lib/rspeckled/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|