rspec-uuid 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec-uuid/matchers.rb +1 -1
- data/lib/rspec-uuid/version.rb +1 -1
- data/spec/matchers_spec.rb +6 -6
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caa7afca895de94cad4ceea528171b93482976b45b6a59e96103d14fcf42c2e6
|
4
|
+
data.tar.gz: fd24385339537457902c4a6750e0847f4c1face45d7bf9d47ab26a2a194c6c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f3f2e09137b49762079e80abd5d0f4962b25dd783db6c8cd3bf2750ad976fc962341f4fdec938d346521696a5f1f4ab4f15e0f35993470d43d570f3b4275cd
|
7
|
+
data.tar.gz: 5e8327d444a20dc4c1e393ca642b8d9cdb35059a335bfc3ab9f50937a9804df5f13b392bed25d0be8ab3168705e4ac3077bf1fafbbb3877f9eca2a39e916073f
|
data/lib/rspec-uuid/matchers.rb
CHANGED
data/lib/rspec-uuid/version.rb
CHANGED
data/spec/matchers_spec.rb
CHANGED
@@ -37,16 +37,16 @@ describe RSpecUUID::Matchers do
|
|
37
37
|
let(:uuid_v4) { SecureRandom.uuid }
|
38
38
|
let(:uuid_v5) { Digest::UUID.uuid_v5(namespace, "123") }
|
39
39
|
|
40
|
-
specify { expect(uuid_v3).to be_a_uuid(3) }
|
41
|
-
specify { expect(uuid_v3).not_to be_a_uuid(4) }
|
42
|
-
specify { expect(uuid_v3).not_to be_a_uuid(5) }
|
40
|
+
specify { expect(uuid_v3).to be_a_uuid(version: 3) }
|
41
|
+
specify { expect(uuid_v3).not_to be_a_uuid(version: 4) }
|
42
|
+
specify { expect(uuid_v3).not_to be_a_uuid(version: 5) }
|
43
43
|
|
44
|
-
specify { expect(uuid_v4).to be_a_uuid(4) }
|
45
|
-
specify { expect(uuid_v5).to be_a_uuid(5) }
|
44
|
+
specify { expect(uuid_v4).to be_a_uuid(version: 4) }
|
45
|
+
specify { expect(uuid_v5).to be_a_uuid(version: 5) }
|
46
46
|
|
47
47
|
it "fails with a useful message" do
|
48
48
|
expect {
|
49
|
-
expect(uuid_v3).to be_a_uuid(4)
|
49
|
+
expect(uuid_v3).to be_a_uuid(version: 4)
|
50
50
|
}.to fail_including("expected a UUID v4, found a UUID v3")
|
51
51
|
end
|
52
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-uuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Pepper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec-expectations
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: activesupport
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|