pencil_pusher 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pencil_pusher/have_errors.rb +3 -0
- data/lib/pencil_pusher/have_int_field.rb +3 -0
- data/lib/pencil_pusher/have_required_choice_field.rb +3 -0
- data/lib/pencil_pusher/have_required_field.rb +3 -0
- data/lib/pencil_pusher/have_required_float_field.rb +3 -0
- data/lib/pencil_pusher/have_required_int_field.rb +3 -0
- data/lib/pencil_pusher/have_text_field.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aa2194b74d175aa9ee6e66ba8e0e9f94476613f
|
4
|
+
data.tar.gz: e24c422e7e2a77bc2bf1e04e3b026075219eb851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1131f0e50b7e85d77493753009740a1db096893eca4bafb4f043d5a0e37ce0909aacd91953b5fdcbac4a7ed5f40d138238e8253e679101614369bfe9382af21
|
7
|
+
data.tar.gz: 1b507c060c0fb8358ff2bb5b2e27444552c34612cd5ceff6029f0d0fa5d31d07d53e2e12838a65fab12bf1ce6ceb87e5537de39a8726392939e7c037f760d5ab
|
@@ -27,6 +27,9 @@ module PencilPusher
|
|
27
27
|
"expected no errors for field #{field_name} but found #{actual.error_messages[field_name]}"
|
28
28
|
end
|
29
29
|
|
30
|
+
alias failure_message failure_message_for_should
|
31
|
+
alias failure_message_when_negated failure_message_for_should_not
|
32
|
+
|
30
33
|
def description
|
31
34
|
"have errors for #{field_name}"
|
32
35
|
end
|
@@ -27,6 +27,9 @@ module PencilPusher
|
|
27
27
|
"expected #{actual} to not have int field #{field_name} but did"
|
28
28
|
end
|
29
29
|
|
30
|
+
alias failure_message failure_message_for_should
|
31
|
+
alias failure_message_when_negated failure_message_for_should_not
|
32
|
+
|
30
33
|
def description
|
31
34
|
"have int field #{field_name}"
|
32
35
|
end
|
@@ -32,6 +32,9 @@ module PencilPusher
|
|
32
32
|
"expected #{actual} to not have required choice field #{field_name} but did"
|
33
33
|
end
|
34
34
|
|
35
|
+
alias failure_message failure_message_for_should
|
36
|
+
alias failure_message_when_negated failure_message_for_should_not
|
37
|
+
|
35
38
|
def description
|
36
39
|
"have required choice field #{field_name}"
|
37
40
|
end
|
@@ -26,6 +26,9 @@ module PencilPusher
|
|
26
26
|
"expected #{actual} to not have required field #{field_name} but did"
|
27
27
|
end
|
28
28
|
|
29
|
+
alias failure_message failure_message_for_should
|
30
|
+
alias failure_message_when_negated failure_message_for_should_not
|
31
|
+
|
29
32
|
def description
|
30
33
|
"have required field #{field_name}"
|
31
34
|
end
|
@@ -29,6 +29,9 @@ module PencilPusher
|
|
29
29
|
"expected #{actual} to not have required float field #{field_name} but did"
|
30
30
|
end
|
31
31
|
|
32
|
+
alias failure_message failure_message_for_should
|
33
|
+
alias failure_message_when_negated failure_message_for_should_not
|
34
|
+
|
32
35
|
def description
|
33
36
|
"have required float field #{field_name}"
|
34
37
|
end
|
@@ -28,6 +28,9 @@ module PencilPusher
|
|
28
28
|
"expected #{actual} to not have required int field #{field_name} but did"
|
29
29
|
end
|
30
30
|
|
31
|
+
alias failure_message failure_message_for_should
|
32
|
+
alias failure_message_when_negated failure_message_for_should_not
|
33
|
+
|
31
34
|
def description
|
32
35
|
"have required int field #{field_name}"
|
33
36
|
end
|
@@ -25,6 +25,9 @@ module PencilPusher
|
|
25
25
|
"expected #{actual} to not have text field #{field_name} but did"
|
26
26
|
end
|
27
27
|
|
28
|
+
alias failure_message failure_message_for_should
|
29
|
+
alias failure_message_when_negated failure_message_for_should_not
|
30
|
+
|
28
31
|
def description
|
29
32
|
"have text field #{field_name}"
|
30
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pencil_pusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myles Megyesi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|