peck 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/peck/expectations.rb +6 -3
- data/lib/peck/notifiers/default.rb +2 -2
- data/lib/peck.rb +1 -1
- metadata +41 -29
- checksums.yaml +0 -7
data/lib/peck/expectations.rb
CHANGED
@@ -73,14 +73,17 @@ class Peck
|
|
73
73
|
end
|
74
74
|
|
75
75
|
satisfy(description) do |x|
|
76
|
-
difference = change || 1
|
77
76
|
binding = x.send(:binding)
|
78
77
|
|
79
78
|
before = eval(expression, binding)
|
80
79
|
result = @this.call
|
81
80
|
after = eval(expression, binding)
|
82
81
|
|
83
|
-
|
82
|
+
if difference = change
|
83
|
+
after == before + difference
|
84
|
+
else
|
85
|
+
before != after
|
86
|
+
end
|
84
87
|
end
|
85
88
|
end
|
86
89
|
|
@@ -136,4 +139,4 @@ class Object
|
|
136
139
|
Peck::Should.new(self).be(*args, &block)
|
137
140
|
end
|
138
141
|
end
|
139
|
-
end
|
142
|
+
end
|
@@ -25,7 +25,7 @@ class Peck
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
28
|
+
def write_exception(number, event)
|
29
29
|
puts " #{number}) #{event.spec.label}\n\n"
|
30
30
|
backtrace = clean_backtrace(event.exception.backtrace)
|
31
31
|
|
@@ -41,7 +41,7 @@ class Peck
|
|
41
41
|
def write_event(number, event)
|
42
42
|
case event.exception
|
43
43
|
when Exception
|
44
|
-
|
44
|
+
write_exception(number, event)
|
45
45
|
else
|
46
46
|
raise ArgumentError, "Don't know how to display event `#{event.expectation.class.name}'"
|
47
47
|
end
|
data/lib/peck.rb
CHANGED
metadata
CHANGED
@@ -1,24 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: peck
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 5
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
5
10
|
platform: ruby
|
6
|
-
authors:
|
11
|
+
authors:
|
7
12
|
- Manfred Stienstra
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
|
-
|
16
|
+
|
17
|
+
date: 2013-11-21 00:00:00 +01:00
|
18
|
+
default_executable:
|
12
19
|
dependencies: []
|
13
|
-
|
14
|
-
|
20
|
+
|
21
|
+
description: " Concurrent spec framework.\n"
|
15
22
|
email: manfred@fngtps.com
|
16
|
-
executables:
|
23
|
+
executables:
|
17
24
|
- peck
|
18
25
|
extensions: []
|
19
|
-
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
20
28
|
- COPYING
|
21
|
-
files:
|
29
|
+
files:
|
22
30
|
- lib/peck/context.rb
|
23
31
|
- lib/peck/counter.rb
|
24
32
|
- lib/peck/debug.rb
|
@@ -36,31 +44,35 @@ files:
|
|
36
44
|
- lib/peck.rb
|
37
45
|
- COPYING
|
38
46
|
- README.md
|
39
|
-
|
47
|
+
has_rdoc: true
|
40
48
|
homepage:
|
41
49
|
licenses: []
|
42
|
-
|
50
|
+
|
43
51
|
post_install_message:
|
44
|
-
rdoc_options:
|
52
|
+
rdoc_options:
|
45
53
|
- --charset=utf-8
|
46
|
-
require_paths:
|
54
|
+
require_paths:
|
47
55
|
- lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
58
70
|
requirements: []
|
71
|
+
|
59
72
|
rubyforge_project:
|
60
|
-
rubygems_version:
|
73
|
+
rubygems_version: 1.3.6
|
61
74
|
signing_key:
|
62
|
-
specification_version:
|
63
|
-
summary: Peck is a concurrent spec framework which inherits a lot from the fabulous
|
64
|
-
Bacon and MacBacon. We call it a framework because it was designed to be used in
|
65
|
-
parts and is easily extended.
|
75
|
+
specification_version: 3
|
76
|
+
summary: Peck is a concurrent spec framework which inherits a lot from the fabulous Bacon and MacBacon. We call it a framework because it was designed to be used in parts and is easily extended.
|
66
77
|
test_files: []
|
78
|
+
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 8d02cb15338b60e32592ca9edff3b23106b4306f
|
4
|
-
data.tar.gz: 4049a740ea4ba2d85bfa19e2ba122323c0f15aa4
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 83030d67cbcd51b60cda3dc7a0f9825d6901b9c9e8292eb9f34971b465494e4cc298df92af65cd1085bd6663aa7da96f9c149179b973de18bba9546f3f2d1b6b
|
7
|
-
data.tar.gz: 8e19322b728c46bff2fc3ee36fcde70c389bc8c8892bb44730a467c77fe459a8d64207c8851766b2cd5074511e9b780779b541098b1b8326ce65265be433af57
|