rspectacular 0.63.0 → 0.64.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspectacular/plugins/authentication.rb +5 -5
- data/lib/rspectacular/plugins/database_cleaner.rb +1 -1
- data/lib/rspectacular/plugins/elasticsearch.rb +0 -25
- data/lib/rspectacular/plugins/singleton.rb +2 -2
- data/lib/rspectacular/plugins/timecop.rb +1 -1
- data/lib/rspectacular/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14d39af677d480c904f5066f93d9f21948b79608
|
4
|
+
data.tar.gz: 3acef2e61df9e97668e456cd196818426bce842f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7537a61ce61735596027c7cc8a4e5f56db2145569ddd08ab6d03f3cb92256693ac7dd60aff73b19dc75fd49af1edfbd4d3324d8dec2835f0933ee0eaa29cafb1
|
7
|
+
data.tar.gz: fd7cd53756014cbe921d4d280f0eaa62db5acaeb1f52c6b7a82d4d8c2e3bf3b8fb3220f522b128fb4556accaa65d695d35f02027d3162145d11c6abd91f63924
|
@@ -56,14 +56,14 @@ RSpec.configure do |config|
|
|
56
56
|
|
57
57
|
authentication_result = authentication_successful ? instance : nil
|
58
58
|
|
59
|
-
authentication_controller_class.
|
60
|
-
authentication_controller_class.
|
61
|
-
authentication_controller_class.
|
62
|
-
example.example_group_instance.class.let(current_class_method)
|
59
|
+
authentication_controller_class.__send__(:define_method, authentication_method) { authentication_successful }
|
60
|
+
authentication_controller_class.__send__(:define_method, current_class_method) { authentication_result }
|
61
|
+
authentication_controller_class.__send__(:helper_method, current_class_method)
|
62
|
+
example.example_group_instance.class.let(current_class_method) { authentication_result }
|
63
63
|
|
64
64
|
example.run
|
65
65
|
|
66
|
-
authentication_controller_class.
|
66
|
+
authentication_controller_class.__send__(:remove_method, current_class_method)
|
67
67
|
|
68
68
|
instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
|
69
69
|
end
|
@@ -27,31 +27,6 @@ begin
|
|
27
27
|
config.after(:suite, elasticsearch: ->(v) { !!v }) do
|
28
28
|
Elasticsearch::Extensions::Test::Cluster.stop(port: 9200) if Elasticsearch::Extensions::Test::Cluster.running?
|
29
29
|
end
|
30
|
-
|
31
|
-
# config.around(:each, time_mock: ->(v) { !!v }) do |example|
|
32
|
-
# options = example.metadata[:time_mock]
|
33
|
-
# options = case options
|
34
|
-
# when Time
|
35
|
-
# { time: options }
|
36
|
-
# when FalseClass
|
37
|
-
# false
|
38
|
-
# when TrueClass
|
39
|
-
# {}
|
40
|
-
# end
|
41
|
-
#
|
42
|
-
# if options
|
43
|
-
# mock_type = options.fetch(:type, :freeze)
|
44
|
-
# time = options.fetch(:time, Time.utc(2012, 7, 26, 18, 0, 0))
|
45
|
-
#
|
46
|
-
# Timecop.send(mock_type, time)
|
47
|
-
# else
|
48
|
-
# Timecop.return
|
49
|
-
# end
|
50
|
-
#
|
51
|
-
# example.run
|
52
|
-
#
|
53
|
-
# Timecop.return
|
54
|
-
# end
|
55
30
|
end
|
56
31
|
rescue LoadError
|
57
32
|
end
|
@@ -7,8 +7,8 @@ RSpec.configure do |config|
|
|
7
7
|
require 'singleton'
|
8
8
|
|
9
9
|
options = example.metadata[:singletons]
|
10
|
-
options = options.is_a?(TrueClass) ?
|
11
|
-
singletons_to_reset = options
|
10
|
+
options = options.is_a?(TrueClass) ? described_class : options
|
11
|
+
singletons_to_reset = Array(options)
|
12
12
|
|
13
13
|
singletons_to_reset.each do |singleton|
|
14
14
|
Singleton.__init__(singleton)
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspectacular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.64.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project: rspectacular
|
127
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.8
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: RSpec Support And Matchers
|