rspec-que 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rspec/que.rb +2 -0
- data/lib/rspec/que/queue_up.rb +2 -0
- data/lib/rspec/que/queue_up/queued_at.rb +2 -0
- data/lib/rspec/que/queue_up/queued_class.rb +12 -2
- data/lib/rspec/que/queue_up/queued_priority.rb +2 -0
- data/lib/rspec/que/queue_up/queued_something.rb +2 -1
- data/lib/rspec/que/version.rb +3 -1
- data/rspec-que.gemspec +5 -2
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6120399b6b22bf6d06958c2a39fd386a4de90d50f0815130129be20da5875ab0
|
4
|
+
data.tar.gz: 8bf6d163067a0e8a234a78fabbf43e052c4696fca81f6632f05aec3ae02d0660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66dee47f3ef54a00c2ede1dc41097abeaa67ea7ca1178ecdc9d368b6772ff47bf44f62ca2e7439cda1e6647386040608186d607803d28a304005e591151601d3
|
7
|
+
data.tar.gz: 974738ef9b581968c569d92543296866c222f4397091fc72969581889aa9d6ce36ae7f061400da31e9e8e51a47b8d616fb00ce5cc157048e88380ebe35fabb0e
|
data/lib/rspec/que.rb
CHANGED
data/lib/rspec/que/queue_up.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RSpec
|
2
4
|
module Que
|
3
5
|
module Matchers
|
@@ -9,11 +11,19 @@ module RSpec
|
|
9
11
|
end
|
10
12
|
|
11
13
|
def matches?(job)
|
12
|
-
|
14
|
+
if job_class.is_a?(RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
|
15
|
+
!job[:job_class].nil?
|
16
|
+
else
|
17
|
+
job[:job_class] == job_class.to_s
|
18
|
+
end
|
13
19
|
end
|
14
20
|
|
15
21
|
def desc
|
16
|
-
|
22
|
+
if job_class.is_a?(RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
|
23
|
+
"of any class"
|
24
|
+
else
|
25
|
+
"of class #{job_class}"
|
26
|
+
end
|
17
27
|
end
|
18
28
|
|
19
29
|
def failed_msg(candidates)
|
data/lib/rspec/que/version.rb
CHANGED
data/rspec-que.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('lib/rspec/que/version', __dir__)
|
2
4
|
require 'date'
|
3
5
|
|
4
6
|
Gem::Specification.new do |s|
|
@@ -17,11 +19,12 @@ Gem::Specification.new do |s|
|
|
17
19
|
|
18
20
|
s.has_rdoc = false
|
19
21
|
s.files = `git ls-files lib README.md LICENSE *.gemspec -z`.split("\x0")
|
20
|
-
s.require_paths = %w
|
22
|
+
s.require_paths = %w[lib]
|
21
23
|
|
22
24
|
s.add_runtime_dependency('rspec-mocks')
|
23
25
|
|
24
26
|
s.add_development_dependency('rspec')
|
25
27
|
s.add_development_dependency('rspec-its')
|
28
|
+
s.add_development_dependency("rspec_junit_formatter", "~> 0.4")
|
26
29
|
s.add_development_dependency('rubocop')
|
27
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-que
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-mocks
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
120
|
- !ruby/object:Gem::Version
|
107
121
|
version: '0'
|
108
122
|
requirements: []
|
109
|
-
|
110
|
-
rubygems_version: 2.5.1
|
123
|
+
rubygems_version: 3.0.3
|
111
124
|
signing_key:
|
112
125
|
specification_version: 4
|
113
126
|
summary: RSpec matchers to test Que
|