rspec-sse-matchers 0.1.1 → 0.1.2

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: 84f258c33399cbe1c463560403ca8d14d3f0a3a74ece2a6f049cca44f4cf3237
4
- data.tar.gz: bdfebd62326dd963958ef29780c50708f618e05e9d6615ac263d227746b5e47e
3
+ metadata.gz: cb59580533e9cd9424757c013ba82dc7f6735ad1064e434a30601f5e388d9423
4
+ data.tar.gz: 781c89151d3c0bf01cdc463cce0e3cab5ebeee1b280c5834d9dfc626a5687a2b
5
5
  SHA512:
6
- metadata.gz: 50f83f06a9613d81e0318aa3dec1e1588d910ec09fb3e28f950878137c3ab6a2f6dc5fe39361f94c02f0b20cac530676a94a5c01b9e567ae116348909112ab75
7
- data.tar.gz: cd4ba593d09e08ad770518bd261860a792bde1c57b76c2be7e6b4eb8fc8f90b08181ab22179e84204b8fe44e6b25037ba5f6cf476b4c092a905d477c7e21b165
6
+ metadata.gz: 554de4d1324acc2c018c5ef9900455475972c81f6b376d1874c2c7f6515efa5eca56534d55355d4a013729fed74d577dfb1fab48c9032b425e373cabe6374b5e
7
+ data.tar.gz: ded963231f3c11f214c2c0bcac8ab2cc21ca9d1b36ce9ed473e991f4d874f5e4ab92d2a8bf5771101780fe67335dc3cb36b1c4ae49964ed0ac856d460f8b8f97
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module SSE
5
5
  module Matchers
6
- VERSION = "0.1.1"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
9
9
  end
@@ -278,18 +278,17 @@ module RSpec
278
278
  @actual = actual
279
279
  @actual.headers["content-type"] == "text/event-stream" \
280
280
  && @actual.headers["cache-control"]&.match(/no-(?:store|cache)/) \
281
- && @actual.headers["content-length"].nil? \
282
281
  && @actual.status == 200
283
282
  end
284
283
 
285
284
  # @rbs return: String
286
285
  def failure_message
287
- "Expected response header of `content-type` is `text/event-stream`, `cache-control` contains `no-store`, `content-length` does not exist, and status code is `2xx`"
286
+ "Expected response header of `content-type` is `text/event-stream`, `cache-control` contains `no-store` or `no-cache`, and status code is `2xx`"
288
287
  end
289
288
 
290
289
  # @rbs return: String
291
290
  def failure_message_when_negated
292
- "Expected response header of `content-type` is not `text/event-stream`, `cache-control` does not contain `no-store`, `content-length` exists, and/or status code is not `2xx`"
291
+ "Expected response header of `content-type` is not `text/event-stream`, `cache-control` does not contain `no-store` or `no-cache`, and/or status code is not `2xx`"
293
292
  end
294
293
 
295
294
  # @rbs return: String
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - moznion