rspec-goodies 0.1.2 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 178b41d6c75e0dea12bb56517244b204936d37df0ec473e78e981ab3765064da
4
- data.tar.gz: 700b4d1a1dff6149bb8c6be4515f6ecf045f7f763b012dadb5d3e18205ccc432
3
+ metadata.gz: 80ad26995dce5624862bc049119337fc71c801c074ceec5e28eadafaa219675e
4
+ data.tar.gz: b07ed7ef9492914455508966a780684f5baff3b093a75efb2994aeb15ebc6d51
5
5
  SHA512:
6
- metadata.gz: 31039ee14d63c90175652ae45dd151fb141bb3b9f449c826051768fc55f654f52f95d7abdf42185cf8ef99999ac4dff6e8a9fdc6f1245121394265eeadae5bdc
7
- data.tar.gz: 8fc10290d80e4c5d84f752c2b21082374bd28b61cf44835a61c7c106e0902c87c93dd27ec161035a7a5632f0f48b727557ae5e6377e368e1237928076d57ac9b
6
+ metadata.gz: d86d7a1edfc0e8adc8babc7d983e0b045fe8f42a138b5f0e21c985a522f110e6cb314e27780bd22f450a5b2916fa709e4036b54f93100e9f50bb256439b00d94
7
+ data.tar.gz: 0b2605961bdacf9770686b64b47a6b76717e40af3cacf8b22d5b680be555e0f8b70b0257f7b83b6ffa63cf54b8c56acf5d8a525038777a4f4d7a919ded03a719
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-goodies (0.1.2)
4
+ rspec-goodies (0.1.4)
5
5
  activesupport
6
6
  byebug
7
7
  rails
@@ -125,11 +125,12 @@ module RSpec
125
125
  process_id = "foo:#{SecureRandom.hex}"
126
126
  job_data = ::Sidekiq.dump_json(
127
127
  "queue" => "default",
128
- "payload" => {
128
+ # Sidekiq 6.2+ stores the in-progress job as a JSON string, so Sidekiq::Work#payload returns a string
129
+ "payload" => ::Sidekiq.dump_json(
129
130
  "jid" => jid,
130
131
  "class" => worker_class.to_s,
131
132
  "args" => args,
132
- },
133
+ ),
133
134
  "run_at" => Time.current.to_i,
134
135
  )
135
136
  process_data = ::Sidekiq.dump_json(
@@ -44,13 +44,14 @@ class SidekiqJobsEnqueuedMatcher
44
44
 
45
45
  expect(Array(job[key])).to match(value)
46
46
  when "at"
47
- if (scheduled_at = job[key])
47
+ # If nil, then we are looking for jobs that aren't scheduled
48
+ if value.nil?
49
+ expect(job.key?("at")).to eq false
50
+ else
48
51
  # It's a float in job
49
- expect(scheduled_at).to eq(value.to_f)
52
+ scheduled_at = job[key]
50
53
 
51
- # Otherwise if nil, then we are looking for jobs that aren't scheduled
52
- else
53
- expect(job.key?("at")).to eq false
54
+ expect(scheduled_at).to eq(value.to_f)
54
55
  end
55
56
  when "bid"
56
57
  expect(job[key]).to match(value)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-goodies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-03 00:00:00.000000000 Z
11
+ date: 2026-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -113,7 +113,6 @@ files:
113
113
  - lib/rspec/goodies/matchers/hash.rb
114
114
  - lib/rspec/goodies/matchers/sidekiq.rb
115
115
  - lib/rspec/goodies/matchers/string.rb
116
- - rspec-goodies.gemspec
117
116
  homepage: https://github.com/axsuul/rspec-goodies
118
117
  licenses:
119
118
  - MIT
@@ -136,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
135
  - !ruby/object:Gem::Version
137
136
  version: '0'
138
137
  requirements: []
139
- rubygems_version: 3.1.6
138
+ rubygems_version: 3.5.9
140
139
  signing_key:
141
140
  specification_version: 4
142
141
  summary: RSpec goodies full of helpers, matchers, and more
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = "rspec-goodies"
5
- spec.version = "0.1.2"
6
- spec.authors = ["James Hu"]
7
-
8
- spec.summary = "RSpec goodies full of helpers, matchers, and more"
9
- spec.description = "RSpec goodies full of helpers, matchers, and more"
10
- spec.homepage = "https://github.com/axsuul/rspec-goodies"
11
- spec.license = "MIT"
12
-
13
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
14
- spec.metadata["homepage_uri"] = spec.homepage
15
- spec.metadata["source_code_uri"] = "https://github.com/axsuul/rspec-goodies"
16
-
17
- # Specify which files should be added to the gem when it is released.
18
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
- `git ls-files -z`.split("\x0").reject do |f|
21
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
22
- end
23
- end
24
- spec.bindir = "exe"
25
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
- spec.require_paths = ["lib"]
27
-
28
- # Uncomment to register a new dependency of your gem
29
- spec.add_dependency "activesupport"
30
- spec.add_dependency "byebug"
31
- spec.add_dependency "rails"
32
-
33
- spec.add_development_dependency "rspec"
34
- spec.add_development_dependency "sidekiq"
35
- spec.add_development_dependency "timecop"
36
-
37
- # For more information and examples about making a new gem, check out our
38
- # guide at: https://bundler.io/guides/creating_gem.html
39
- end