rspec-sse-matchers 0.1.0 → 0.1.1
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 +4 -4
- data/lib/rspec/sse/matchers/version.rb +1 -1
- data/lib/rspec/sse/matchers.rb +1 -1
- metadata +1 -2
- data/CHANGELOG.md +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84f258c33399cbe1c463560403ca8d14d3f0a3a74ece2a6f049cca44f4cf3237
|
4
|
+
data.tar.gz: bdfebd62326dd963958ef29780c50708f618e05e9d6615ac263d227746b5e47e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f83f06a9613d81e0318aa3dec1e1588d910ec09fb3e28f950878137c3ab6a2f6dc5fe39361f94c02f0b20cac530676a94a5c01b9e567ae116348909112ab75
|
7
|
+
data.tar.gz: cd4ba593d09e08ad770518bd261860a792bde1c57b76c2be7e6b4eb8fc8f90b08181ab22179e84204b8fe44e6b25037ba5f6cf476b4c092a905d477c7e21b165
|
data/lib/rspec/sse/matchers.rb
CHANGED
@@ -277,7 +277,7 @@ module RSpec
|
|
277
277
|
def matches?(actual)
|
278
278
|
@actual = actual
|
279
279
|
@actual.headers["content-type"] == "text/event-stream" \
|
280
|
-
&& @actual.headers["cache-control"]&.match(/no-store/) \
|
280
|
+
&& @actual.headers["cache-control"]&.match(/no-(?:store|cache)/) \
|
281
281
|
&& @actual.headers["content-length"].nil? \
|
282
282
|
&& @actual.status == 200
|
283
283
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-sse-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moznion
|
@@ -32,7 +32,6 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- ".rspec"
|
34
34
|
- ".standard.yml"
|
35
|
-
- CHANGELOG.md
|
36
35
|
- CODE_OF_CONDUCT.md
|
37
36
|
- LICENSE
|
38
37
|
- README.md
|