rspec-sidekiq 1.1.0 → 2.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +1 -1
  3. data/.rspec +1 -1
  4. data/.simplecov +1 -1
  5. data/CHANGES.md +5 -0
  6. data/Gemfile +5 -5
  7. data/LICENSE +2 -2
  8. data/README.md +0 -4
  9. data/lib/rspec-sidekiq.rb +8 -7
  10. data/lib/rspec/sidekiq/batch.rb +4 -2
  11. data/lib/rspec/sidekiq/configuration.rb +2 -1
  12. data/lib/rspec/sidekiq/helpers.rb +3 -2
  13. data/lib/rspec/sidekiq/helpers/within_sidekiq_retries_exhausted_block.rb +5 -4
  14. data/lib/rspec/sidekiq/matchers.rb +8 -8
  15. data/lib/rspec/sidekiq/matchers/be_delayed.rb +1 -2
  16. data/lib/rspec/sidekiq/matchers/be_processed_in.rb +1 -2
  17. data/lib/rspec/sidekiq/matchers/be_retryable.rb +1 -2
  18. data/lib/rspec/sidekiq/matchers/be_unique.rb +1 -2
  19. data/lib/rspec/sidekiq/matchers/have_enqueued_job.rb +19 -9
  20. data/lib/rspec/sidekiq/sidekiq.rb +4 -3
  21. data/lib/rspec/sidekiq/version.rb +2 -1
  22. data/rspec-sidekiq.gemspec +25 -25
  23. data/spec/rspec/sidekiq/batch_spec.rb +10 -9
  24. data/spec/rspec/sidekiq/helpers/retries_exhausted_spec.rb +2 -2
  25. data/spec/rspec/sidekiq/matchers/be_delayed_spec.rb +87 -86
  26. data/spec/rspec/sidekiq/matchers/be_processed_in_spec.rb +42 -41
  27. data/spec/rspec/sidekiq/matchers/be_retryable_spec.rb +49 -48
  28. data/spec/rspec/sidekiq/matchers/be_unique_spec.rb +24 -23
  29. data/spec/rspec/sidekiq/matchers/have_enqueued_job_spec.rb +29 -28
  30. data/spec/rspec/sidekiq/sidekiq_spec.rb +8 -7
  31. data/spec/rspec/sidekiq/version_spec.rb +3 -2
  32. data/spec/spec_helper.rb +7 -6
  33. data/spec/support/factories.rb +4 -3
  34. data/spec/support/init.rb +4 -3
  35. data/spec/support/test_worker.rb +2 -1
  36. data/spec/support/test_worker_alternative.rb +3 -2
  37. metadata +23 -25
  38. data/lib/rspec/sidekiq/matchers/have_enqueued_jobs.rb +0 -12
  39. data/spec/rspec/sidekiq/matchers/have_enqueued_jobs_spec.rb +0 -9
@@ -1,8 +1,9 @@
1
+ # encoding: utf-8
1
2
  class TestWorkerAlternative
2
3
  include Sidekiq::Worker
3
4
 
4
- sidekiq_options queue: "data", retry: false, unique: false
5
+ sidekiq_options queue: 'data', retry: false, unique: false
5
6
 
6
7
  def perform
7
8
  end
8
- end
9
+ end
metadata CHANGED
@@ -1,81 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Ostler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.0
47
+ version: 0.7.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.0
54
+ version: 0.7.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fuubar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.0
61
+ version: 2.0.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.1.0
68
+ version: 2.0.0
69
69
  description: Simple testing of Sidekiq jobs via a collection of matchers and helpers
70
70
  email: github@philostler.com
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
- - .gitattributes
76
- - .gitignore
77
- - .rspec
78
- - .simplecov
75
+ - ".gitattributes"
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".simplecov"
79
79
  - CHANGES.md
80
80
  - Gemfile
81
81
  - LICENSE
@@ -91,7 +91,6 @@ files:
91
91
  - lib/rspec/sidekiq/matchers/be_retryable.rb
92
92
  - lib/rspec/sidekiq/matchers/be_unique.rb
93
93
  - lib/rspec/sidekiq/matchers/have_enqueued_job.rb
94
- - lib/rspec/sidekiq/matchers/have_enqueued_jobs.rb
95
94
  - lib/rspec/sidekiq/sidekiq.rb
96
95
  - lib/rspec/sidekiq/version.rb
97
96
  - rspec-sidekiq.gemspec
@@ -102,7 +101,6 @@ files:
102
101
  - spec/rspec/sidekiq/matchers/be_retryable_spec.rb
103
102
  - spec/rspec/sidekiq/matchers/be_unique_spec.rb
104
103
  - spec/rspec/sidekiq/matchers/have_enqueued_job_spec.rb
105
- - spec/rspec/sidekiq/matchers/have_enqueued_jobs_spec.rb
106
104
  - spec/rspec/sidekiq/sidekiq_spec.rb
107
105
  - spec/rspec/sidekiq/version_spec.rb
108
106
  - spec/spec_helper.rb
@@ -120,14 +118,14 @@ require_paths:
120
118
  - lib
121
119
  required_ruby_version: !ruby/object:Gem::Requirement
122
120
  requirements:
123
- - - ! '>='
121
+ - - ">="
124
122
  - !ruby/object:Gem::Version
125
123
  version: '0'
126
124
  required_rubygems_version: !ruby/object:Gem::Requirement
127
125
  requirements:
128
- - - ! '>='
126
+ - - ">"
129
127
  - !ruby/object:Gem::Version
130
- version: '0'
128
+ version: 1.3.1
131
129
  requirements: []
132
130
  rubyforge_project:
133
131
  rubygems_version: 2.2.2
@@ -1,12 +0,0 @@
1
- module RSpec
2
- module Sidekiq
3
- module Matchers
4
- def have_enqueued_jobs expected_number_of_jobs
5
- raise RuntimeError, "have_enqueued_jobs matcher has been removed from rspec-sidekiq 1.x.x. Use \"expect(Job).to have(2).jobs\" instead. See https://github.com/philostler/rspec-sidekiq/wiki/FAQ-&-Troubleshooting"
6
- end
7
-
8
- class HaveEnqueuedJobs
9
- end
10
- end
11
- end
12
- end
@@ -1,9 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe RSpec::Sidekiq::Matchers::HaveEnqueuedJobs do
4
- describe "#have_enqueued_jobs" do
5
- it "raise error" do
6
- expect{ have_enqueued_jobs 0 }.to raise_error RuntimeError, "have_enqueued_jobs matcher has been removed from rspec-sidekiq 1.x.x. Use \"expect(Job).to have(2).jobs\" instead. See https://github.com/philostler/rspec-sidekiq/wiki/FAQ-&-Troubleshooting"
7
- end
8
- end
9
- end