rspeckled 0.0.40 → 0.0.41

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 774a8cfada143b8dd1b4601199862f33395e6a20
4
- data.tar.gz: 97f7e2f5444097e719353521b9216dd9a9e33f59
3
+ metadata.gz: 981825422e9d13f90d222eb54268f1acb74736ee
4
+ data.tar.gz: edfc03f98f625b4953dafd823585dbaf7d7c3415
5
5
  SHA512:
6
- metadata.gz: 4076c3b77be7b95842bc2c54fbd4f07667a70f831fd54dc9d15ca32f13b862df8086faa1d613fa5e342953e9d19ce828c55b3602e7e15fc5807010cb54946b34
7
- data.tar.gz: 905f4fe1bbff1eecf2bb74b05aebda58d8b3b4917a56c84ec4411654a4d52c6535e9c8ba35e0674bd037b7d3996b5f2774ef90bebab68fb23d8072ee24f16be0
6
+ metadata.gz: 0704a8690f45f251659446bb290d1ef0d7289938f77b81c6349dd771b0eaf9e78558b89a6ca9bace7b7e25b799feafbf8ab30d3935600e42e0ba633078ff3f07
7
+ data.tar.gz: 0ed0bb42933d80106169c173961af92a9be70962b5963ae8b4e7ea0971812a19b000277fff1812c6c331f4bb02618a059f8ed78475c0999f4c8e8f5517e142cd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Dir[File.expand_path('../omniauth/*.rb', __FILE__)].each { |f| require f }
3
+ Dir[File.expand_path('omniauth/*.rb', __dir__)].each { |f| require f }
@@ -30,10 +30,22 @@ RSpec.configure do |config|
30
30
  :"current_#{underscored_class_name}"
31
31
  end
32
32
 
33
+ class_instance_overrides = if options.is_a?(Hash) && options[:class_instance_overrides]
34
+ options[:class_instance_overrides]
35
+ else
36
+ {}
37
+ end
38
+
39
+ class_instance_traits = if options.is_a?(Hash) && options[:class_instance_traits]
40
+ options[:class_instance_traits]
41
+ else
42
+ {}
43
+ end
44
+
33
45
  instance = if options.is_a?(Hash) && options[:strategy] == :instance
34
- klass.new
46
+ klass.new(class_instance_overrides)
35
47
  else
36
- FactoryBot.create(underscored_class_name.to_sym)
48
+ FactoryBot.create(underscored_class_name.to_sym, *class_instance_traits, class_instance_overrides)
37
49
  end
38
50
 
39
51
  inferred_auth_method = if options.is_a?(Hash) && options[:authentication_method]
@@ -81,7 +93,7 @@ RSpec.configure do |config|
81
93
  {
82
94
  'iss' => 'rspeckled',
83
95
  'own' => instance['account_id'] || instance['id'],
84
- 'sub' => example.file_path,
96
+ 'sub' => instance.class.name,
85
97
  'aud' => 'rspec',
86
98
  'exp' => 1.day.from_now.utc.to_i,
87
99
  'nbf' => 1.day.ago.utc.to_i,
@@ -143,4 +143,3 @@ begin
143
143
  end
144
144
  rescue LoadError
145
145
  end
146
- # rubocop:enable Style/SymbolProc
@@ -10,11 +10,9 @@ begin
10
10
  Sidekiq::Queues.clear_all
11
11
  Sidekiq.redis { |r| r.__send__(:instance_variable_get, :@redis).flushdb }
12
12
  Sidekiq.redis do |client|
13
- # rubocop:disable Performance/HashEachMethods
14
13
  client.keys.each do |key|
15
14
  client.del(key)
16
15
  end
17
- # rubocop:enable Performance/HashEachMethods
18
16
  end
19
17
 
20
18
  if example.metadata[:queue] == :stub
@@ -6,7 +6,7 @@
6
6
 
7
7
  begin
8
8
  require 'vcr'
9
- Dir[File.expand_path('../../vcr_matchers/**/*.rb', __FILE__)].each { |f| require f }
9
+ Dir[File.expand_path('../vcr_matchers/**/*.rb', __dir__)].each { |f| require f }
10
10
 
11
11
  begin
12
12
  require 'webmock'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rspeckled
4
- VERSION = '0.0.40'
4
+ VERSION = '0.0.41'
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspeckled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
32
32
  iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
33
33
  -----END CERTIFICATE-----
34
- date: 2018-03-02 00:00:00.000000000 Z
34
+ date: 2018-03-06 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- �@�@2P�PR4u��Ƹ����*�QYD!8-%!4G�U���7O�E����l{ݣ�0��Ҙ m{~޿[���z�� ���-)z�Rt.��A�B*Zo;106꿝�x��3N�B�1A0~q9oGćf��Ѫ{־��_�N�u׽�Uh*�W���*W�/�Go���>�Ե3��d��gY�6w�c��"js�a�����2�sKJ�#��sax�NO�O*4B�o'0@�f
1
+ Ʃ���C7��