rspectacular 0.70.5 → 0.70.6
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rspectacular/plugins/authentication.rb +2 -2
- data/lib/rspectacular/plugins/carrier_wave.rb +2 -2
- data/lib/rspectacular/plugins/database_cleaner.rb +1 -1
- data/lib/rspectacular/plugins/devise.rb +4 -4
- data/lib/rspectacular/plugins/elasticsearch.rb +8 -8
- data/lib/rspectacular/plugins/email.rb +3 -3
- data/lib/rspectacular/plugins/features.rb +1 -1
- data/lib/rspectacular/plugins/mocks.rb +1 -1
- data/lib/rspectacular/plugins/omniauth.rb +2 -2
- data/lib/rspectacular/plugins/referehencible.rb +1 -1
- data/lib/rspectacular/plugins/singleton.rb +1 -1
- data/lib/rspectacular/plugins/stripe.rb +3 -3
- data/lib/rspectacular/plugins/timecop.rb +2 -2
- data/lib/rspectacular/plugins/webmock.rb +2 -2
- data/lib/rspectacular/support/focused.rb +2 -2
- data/lib/rspectacular/support/pending.rb +1 -1
- data/lib/rspectacular/support/rails.rb +1 -1
- data/lib/rspectacular/support/selenium.rb +1 -1
- data/lib/rspectacular/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5cc519865e1ea03bab7697191eb6fe626658ba
|
4
|
+
data.tar.gz: c7b81e15a63fcf5733e1a9b46f24e612f31185c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c85a770b6a9c80081c72d7d964937d633f6c677bb0ad740e7a989114d0f135bf0c0bc5ef81469105886ac450689c67c395693c69499c2d58cdfe6a700922601
|
7
|
+
data.tar.gz: 686bffb3278bcfa0ecfe7b281c87b70050c6acccc213d937389e949f727210d2b1c5bb1989f52c7aae28bd63d7c0132ea8b2efadc901007c4314d9b0c723e418
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
RSpec.configure do |config|
|
2
|
-
config.around(:each, mock_auth
|
2
|
+
config.around(:each, :mock_auth => lambda { |v| !!v }) do |example|
|
3
3
|
options = example.metadata[:mock_auth]
|
4
4
|
|
5
5
|
authentication_type = if options.is_a?(Hash) && options[:type]
|
@@ -105,7 +105,7 @@ RSpec.configure do |config|
|
|
105
105
|
instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
|
106
106
|
end
|
107
107
|
|
108
|
-
config.before(:each, mock_auth
|
108
|
+
config.before(:each, :mock_auth => lambda { |v| !!v }) do |_example|
|
109
109
|
request.env['X_DECRYPTED_JSON_WEB_TOKEN'] = @token_data
|
110
110
|
end
|
111
111
|
end
|
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
require 'carrierwave/test/matchers'
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
-
config.include CarrierWave::Test::Matchers, file_attachment
|
10
|
+
config.include CarrierWave::Test::Matchers, :file_attachment => true
|
11
11
|
end
|
12
12
|
|
13
13
|
CarrierWave.configure do |config|
|
@@ -17,7 +17,7 @@ begin
|
|
17
17
|
end
|
18
18
|
|
19
19
|
RSpec.configure do |config|
|
20
|
-
config.around(:each, file_attachment
|
20
|
+
config.around(:each, :file_attachment => true) do |example|
|
21
21
|
previous_carrierwave_processing_mode = subject.class.enable_processing
|
22
22
|
previous_carrierwave_storage_mode = subject.class.storage
|
23
23
|
|
@@ -8,14 +8,14 @@ begin
|
|
8
8
|
Devise.stretches = 1
|
9
9
|
|
10
10
|
RSpec.configure do |config|
|
11
|
-
config.include Devise::TestHelpers, type
|
12
|
-
config.include Warden::Test::Helpers, type
|
11
|
+
config.include Devise::TestHelpers, :type => :controller
|
12
|
+
config.include Warden::Test::Helpers, :type => :feature
|
13
13
|
|
14
|
-
config.before(:all, type
|
14
|
+
config.before(:all, :type => :feature) do |_example|
|
15
15
|
Warden.test_mode!
|
16
16
|
end
|
17
17
|
|
18
|
-
config.before(:each, type
|
18
|
+
config.before(:each, :type => :controller) do |_example|
|
19
19
|
@request.env['devise.mapping'] = Devise.mappings[:user]
|
20
20
|
end
|
21
21
|
end
|
@@ -6,26 +6,26 @@ begin
|
|
6
6
|
require 'elasticsearch-extensions'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.before(:suite, elasticsearch
|
10
|
-
Elasticsearch::Extensions::Test::Cluster.start(port
|
9
|
+
config.before(:suite, :elasticsearch => lambda { |v| !!v }) do
|
10
|
+
Elasticsearch::Extensions::Test::Cluster.start(:port => 9200) unless Elasticsearch::Extensions::Test::Cluster.running?
|
11
11
|
end
|
12
12
|
|
13
|
-
config.around(:each, elasticsearch
|
13
|
+
config.around(:each, :elasticsearch => lambda { |v| !!v }) do |example|
|
14
14
|
model = case example.metadata[:elasticsearch]
|
15
15
|
when String
|
16
16
|
example.metadata[:elasticsearch].constantize
|
17
17
|
end
|
18
18
|
|
19
|
-
model.__elasticsearch__.client.indices.delete index
|
20
|
-
model.__elasticsearch__.create_index! index
|
19
|
+
model.__elasticsearch__.client.indices.delete :index => '_all'
|
20
|
+
model.__elasticsearch__.create_index! :index => model.index_name
|
21
21
|
|
22
22
|
example.run
|
23
23
|
|
24
|
-
model.__elasticsearch__.client.indices.delete index
|
24
|
+
model.__elasticsearch__.client.indices.delete :index => '_all'
|
25
25
|
end
|
26
26
|
|
27
|
-
config.after(:suite, elasticsearch
|
28
|
-
Elasticsearch::Extensions::Test::Cluster.stop(port
|
27
|
+
config.after(:suite, :elasticsearch => lambda { |v| !!v }) do
|
28
|
+
Elasticsearch::Extensions::Test::Cluster.stop(:port => 9200) if Elasticsearch::Extensions::Test::Cluster.running?
|
29
29
|
end
|
30
30
|
end
|
31
31
|
rescue LoadError
|
@@ -12,15 +12,15 @@ begin
|
|
12
12
|
require 'email_spec'
|
13
13
|
|
14
14
|
RSpec.configure do |config|
|
15
|
-
config.include EmailSpec::Helpers, email
|
16
|
-
config.include EmailSpec::Matchers, email
|
15
|
+
config.include EmailSpec::Helpers, :email => true
|
16
|
+
config.include EmailSpec::Matchers, :email => true
|
17
17
|
end
|
18
18
|
rescue LoadError
|
19
19
|
end
|
20
20
|
|
21
21
|
if defined? ActionMailer
|
22
22
|
RSpec.configure do |config|
|
23
|
-
config.after(:each, email
|
23
|
+
config.after(:each, :email => true) do
|
24
24
|
ActionMailer::Base.deliveries.clear
|
25
25
|
end
|
26
26
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
RSpec.configure do |config|
|
2
|
-
config.around(:each, verify
|
2
|
+
config.around(:each, :verify => false) do |example|
|
3
3
|
verify_partial = RSpec::Mocks.configuration.instance_variable_get(:@verify_partial_doubles)
|
4
4
|
verify_constant = RSpec::Mocks.configuration.instance_variable_get(:@verify_doubled_constant_names)
|
5
5
|
|
@@ -20,7 +20,7 @@ begin
|
|
20
20
|
# Except we don't want OmniAuth to fake anything when doing live tests
|
21
21
|
#
|
22
22
|
RSpec.configure do |config|
|
23
|
-
config.around(:each, js
|
23
|
+
config.around(:each, :js => true) do |example|
|
24
24
|
previous_omniauth_test_mode = OmniAuth.config.test_mode
|
25
25
|
OmniAuth.config.test_mode = false
|
26
26
|
|
@@ -33,7 +33,7 @@ begin
|
|
33
33
|
OmniAuth.config.test_mode = previous_omniauth_test_mode
|
34
34
|
end
|
35
35
|
|
36
|
-
config.before(:each, type
|
36
|
+
config.before(:each, :type => :controller, :mock_oauth => lambda { |v| !!v }) do |example|
|
37
37
|
request.env['omniauth.auth'] = if example.metadata[:mock_oauth].is_a? Symbol
|
38
38
|
OmniAuth.config.mock_auth[example.metadata[:mock_oauth]]
|
39
39
|
else
|
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
require 'referehencible'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.before(:each, mock_refs
|
9
|
+
config.before(:each, :mock_refs => lambda { |v| !!v }) do |example|
|
10
10
|
reference = if example.metadata[:mock_refs].is_a? TrueClass
|
11
11
|
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
12
12
|
else
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##############################################################################
|
4
4
|
|
5
5
|
RSpec.configure do |config|
|
6
|
-
config.around(:each, singletons
|
6
|
+
config.around(:each, :singletons => lambda { |v| !!v }) do |example|
|
7
7
|
require 'singleton'
|
8
8
|
|
9
9
|
options = example.metadata[:singletons]
|
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
require 'stripe'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.after(:each, stripe
|
9
|
+
config.after(:each, :stripe => true) do
|
10
10
|
if defined?(VCR)
|
11
11
|
vcr_turned_on = VCR.turned_on?
|
12
12
|
VCR.turn_off!
|
@@ -18,11 +18,11 @@ begin
|
|
18
18
|
end
|
19
19
|
|
20
20
|
begin
|
21
|
-
Stripe::Plan.all(count
|
21
|
+
Stripe::Plan.all(:count => 100).each do |plan|
|
22
22
|
plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i)
|
23
23
|
end
|
24
24
|
|
25
|
-
Stripe::Customer.all(count
|
25
|
+
Stripe::Customer.all(:count => 100).each(&:delete)
|
26
26
|
ensure
|
27
27
|
VCR.turn_on! if defined?(VCR) && vcr_turned_on
|
28
28
|
WebMock.allow_net_connect! if defined?(WebMock) && webmock_net_connect
|
@@ -6,11 +6,11 @@ begin
|
|
6
6
|
require 'timecop'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.around(:each, time_mock
|
9
|
+
config.around(:each, :time_mock => lambda { |v| !!v }) do |example|
|
10
10
|
options = example.metadata[:time_mock]
|
11
11
|
options = case options
|
12
12
|
when Time
|
13
|
-
{ time
|
13
|
+
{ :time => options }
|
14
14
|
when FalseClass
|
15
15
|
false
|
16
16
|
when TrueClass
|
@@ -6,11 +6,11 @@ begin
|
|
6
6
|
require 'webmock/rspec'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.around(:each, web_mock
|
9
|
+
config.around(:each, :web_mock => lambda { |v| !!v }) do |example|
|
10
10
|
options = example.metadata[:web_mock]
|
11
11
|
options = case options
|
12
12
|
when TrueClass
|
13
|
-
{ allow_localhost
|
13
|
+
{ :allow_localhost => true }
|
14
14
|
end
|
15
15
|
|
16
16
|
WebMock.disable_net_connect!(options)
|
@@ -7,7 +7,7 @@ if defined? RSpec::Rails
|
|
7
7
|
config.infer_spec_type_from_file_location! if config.respond_to?(:infer_spec_type_from_file_location!)
|
8
8
|
|
9
9
|
if Pathname.pwd.join('spec', 'dummy', 'config', 'environment.rb').exist?
|
10
|
-
config.include Rspectacular::NamespacedEngineControllerRouteFix, type
|
10
|
+
config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|