rspectacular 0.70.5 → 0.70.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae57894a6372efe267e1ab937dccbcb9990b26b2
4
- data.tar.gz: a1d6b32c3f82e3702f254c9bbf7c9c6ba13f20d2
3
+ metadata.gz: 2d5cc519865e1ea03bab7697191eb6fe626658ba
4
+ data.tar.gz: c7b81e15a63fcf5733e1a9b46f24e612f31185c4
5
5
  SHA512:
6
- metadata.gz: fd071d175d9513ef883a6dbdab3eee4b9536cdda22a42bec8a6bc0f755671eb087e49bec07583992c478adc9661f90c58531cffaac25815c70abbf7c1662fdfa
7
- data.tar.gz: 644da3363e280c9d261f7c26e2d4a56943023db6fd318af293b08e45d68eb070edaf0b8984b9f7308eb1d867e87a1abc3600b77161727d068a85d9c9ad5d6a2c
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: ->(v) { !!v }) do |example|
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: ->(v) { !!v }) do |_example|
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: true
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: true) do |example|
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
 
@@ -21,7 +21,7 @@ begin
21
21
  DatabaseCleaner.strategy = :transaction
22
22
  end
23
23
 
24
- config.before(:each, js: true) do
24
+ config.before(:each, :js => true) do
25
25
  DatabaseCleaner.strategy = :truncation
26
26
  end
27
27
 
@@ -8,14 +8,14 @@ begin
8
8
  Devise.stretches = 1
9
9
 
10
10
  RSpec.configure do |config|
11
- config.include Devise::TestHelpers, type: :controller
12
- config.include Warden::Test::Helpers, type: :feature
11
+ config.include Devise::TestHelpers, :type => :controller
12
+ config.include Warden::Test::Helpers, :type => :feature
13
13
 
14
- config.before(:all, type: :feature) do |_example|
14
+ config.before(:all, :type => :feature) do |_example|
15
15
  Warden.test_mode!
16
16
  end
17
17
 
18
- config.before(:each, type: :controller) do |_example|
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: ->(v) { !!v }) do
10
- Elasticsearch::Extensions::Test::Cluster.start(port: 9200) unless Elasticsearch::Extensions::Test::Cluster.running?
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: ->(v) { !!v }) do |example|
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: '_all'
20
- model.__elasticsearch__.create_index! index: model.index_name
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: '_all'
24
+ model.__elasticsearch__.client.indices.delete :index => '_all'
25
25
  end
26
26
 
27
- config.after(:suite, elasticsearch: ->(v) { !!v }) do
28
- Elasticsearch::Extensions::Test::Cluster.stop(port: 9200) if Elasticsearch::Extensions::Test::Cluster.running?
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: true
16
- config.include EmailSpec::Matchers, email: true
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: true) do
23
+ config.after(:each, :email => true) do
24
24
  ActionMailer::Base.deliveries.clear
25
25
  end
26
26
  end
@@ -35,4 +35,4 @@ def self.feature(*args, &block)
35
35
  describe(*args, &block)
36
36
  end
37
37
 
38
- RSpec.configuration.include Capybara::Features, capybara_feature: true
38
+ RSpec.configuration.include Capybara::Features, :capybara_feature => true
@@ -1,5 +1,5 @@
1
1
  RSpec.configure do |config|
2
- config.around(:each, verify: false) do |example|
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: true) do |example|
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: :controller, mock_oauth: ->(v) { !!v }) do |example|
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: ->(v) { !!v }) do |example|
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: ->(v) { !!v }) do |example|
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: true) do
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: 100).each do |plan|
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: 100).each(&:delete)
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: ->(v) { !!v }) do |example|
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: options }
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: ->(v) { !!v }) do |example|
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: true }
13
+ { :allow_localhost => true }
14
14
  end
15
15
 
16
16
  WebMock.disable_net_connect!(options)
@@ -1,6 +1,6 @@
1
1
  RSpec.configure do |config|
2
- config.filter_run focused: true
3
- config.alias_example_to :fit, focused: true
2
+ config.filter_run :focused => true
3
+ config.alias_example_to :fit, :focused => true
4
4
 
5
5
  config.run_all_when_everything_filtered = true
6
6
  end
@@ -1,3 +1,3 @@
1
1
  RSpec.configure do |config|
2
- config.alias_example_to :pit, pending: true
2
+ config.alias_example_to :pit, :pending => true
3
3
  end
@@ -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: :controller
10
+ config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller
11
11
  end
12
12
  end
13
13
  end
@@ -1,4 +1,4 @@
1
1
  # For when you just have to know what the hell the browser is doing
2
2
  RSpec.configure do |config|
3
- config.alias_example_to :sit, focused: true, js: true, driver: :selenium
3
+ config.alias_example_to :sit, :focused => true, :js => true, :driver => :selenium
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module Rspectacular
2
- VERSION = '0.70.5'.freeze
2
+ VERSION = '0.70.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.5
4
+ version: 0.70.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
metadata.gz.sig CHANGED
Binary file