assert_difference 0.3.0 → 0.3.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.
- data/README.md +10 -4
- data/lib/assert_difference.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -22,17 +22,23 @@ would require a more verbose syntax:
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
To use it with Test::Unit add this code
|
26
|
-
[let me know](mailto:pupeno@pupeno.com) if it works):
|
25
|
+
To use it with Test::Unit add this code:
|
27
26
|
|
28
27
|
class Test::Unit::TestCase
|
29
|
-
include
|
28
|
+
include AssertDifference
|
29
|
+
end
|
30
|
+
|
31
|
+
or in Rails:
|
32
|
+
|
33
|
+
class ActiveSupport::TestCase
|
34
|
+
# ...
|
35
|
+
include AssertDifference
|
30
36
|
end
|
31
37
|
|
32
38
|
and to use it with RSpec:
|
33
39
|
|
34
40
|
RSpec.configure do |config|
|
35
|
-
config.include
|
41
|
+
config.include AssertDifference
|
36
42
|
end
|
37
43
|
|
38
44
|
For more information read http://pupeno.com/blog/better-assert-difference
|
data/lib/assert_difference.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# Copyright © 2010, 2011, José Pablo Fernández
|
3
3
|
|
4
4
|
module AssertDifference
|
5
|
-
VERSION = "0.3.
|
5
|
+
VERSION = "0.3.1" unless defined?(::AssertDifference::VERSION)
|
6
6
|
|
7
7
|
# Test numeric difference between the return value of an expression as a result of what is evaluated
|
8
8
|
# in the yielded block.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assert_difference
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-25 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yard
|
16
|
-
requirement: &
|
16
|
+
requirement: &70098770379360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70098770379360
|
25
25
|
description: Better assert_difference than Rails by providing a more compact and readable
|
26
26
|
syntax through hashes. For some more information read http://pupeno.com/blog/better-assert-difference.
|
27
27
|
email:
|