rspec_boolean 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_boolean/boolean.rb +7 -2
- data/lib/rspec_boolean/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc82e43833a3efe0230a6617341167ca74ac1cf
|
4
|
+
data.tar.gz: c385f1a84d0c2656761f2ac663b312b816cdfd1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b550db037da830c9ea4ef69f9d72f08c20d624f3c1f5b426d636a68cdf89ff16a5927b4a585059234513a7d52b0bb4cc2f9c439b7322a3fcb15f56cf51defeb
|
7
|
+
data.tar.gz: 06e771aa3c8f838a27d332d8245d727832a7d4845d4f60e53ecc79fb56bd7cdd0ed0089be7ac37db66ff3920061cc9172d838ed715f7e760e40e777e1443274f
|
@@ -4,7 +4,12 @@ RSpec::Matchers.define :be_boolean do |expected|
|
|
4
4
|
return true if actual == true
|
5
5
|
return true if actual == false
|
6
6
|
end
|
7
|
+
|
8
|
+
failure_message do |actual|
|
9
|
+
"expected #{actual} to be true or false"
|
10
|
+
end
|
11
|
+
|
7
12
|
failure_message_when_negated do |actual|
|
8
|
-
"expected
|
13
|
+
"expected #{actual} to be something other than true or false"
|
9
14
|
end
|
10
|
-
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_boolean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenzo Sinisi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.2.
|
93
|
+
rubygems_version: 2.5.2.3
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Add be_boolean to Rspec
|