swiss_knife 2.0.0 → 2.0.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/Gemfile.lock +1 -1
- data/lib/swiss_knife/rspec/allow.rb +1 -1
- data/lib/swiss_knife/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/swiss_knife/rspec/allow_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 729ad486b994bb6f11a3f34ffa3edb1762b45326
|
4
|
+
data.tar.gz: b248b19c54f6a7295a053e5e15fe9996cdfc7b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a6b8fae94eabc88774ce0d14c73ebfbc97152c1841e4c08bd5e8629ecdd08434c35783f1805f3817f42dba9170ed3ebcbe269cb6f9eb7b2d7999689c98756d
|
7
|
+
data.tar.gz: 62ebc222a7c1cd392e3f2775ee8957efdc837498ca4f7600be3eed778e56251fe9e4e3cdca3e61314b90c6b7fb61fa3178194e12ad94a9a850fa97793723113c
|
data/Gemfile.lock
CHANGED
data/lib/swiss_knife/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -14,7 +14,7 @@ describe "allow matcher" do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
record = klass.new
|
17
|
-
record.should allow(nil, "").
|
17
|
+
record.should allow(nil, "").for(:name)
|
18
18
|
end
|
19
19
|
|
20
20
|
it "requires name to be set" do
|
@@ -26,7 +26,7 @@ describe "allow matcher" do
|
|
26
26
|
klass.stub name: "User"
|
27
27
|
|
28
28
|
record = klass.new
|
29
|
-
record.should_not allow(nil, "").
|
29
|
+
record.should_not allow(nil, "").for(:name)
|
30
30
|
end
|
31
31
|
|
32
32
|
it "allows values" do
|
@@ -35,6 +35,6 @@ describe "allow matcher" do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
record = klass.new
|
38
|
-
record.should allow("John Doe", "Jane Doe").
|
38
|
+
record.should allow("John Doe", "Jane Doe").for(:name)
|
39
39
|
end
|
40
40
|
end
|