assert_difference 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +10 -4
  2. data/lib/assert_difference.rb +1 -1
  3. 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 (untested, please
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 Factory::Syntax::Methods
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 Factory::Syntax::Methods
41
+ config.include AssertDifference
36
42
  end
37
43
 
38
44
  For more information read http://pupeno.com/blog/better-assert-difference
@@ -2,7 +2,7 @@
2
2
  # Copyright © 2010, 2011, José Pablo Fernández
3
3
 
4
4
  module AssertDifference
5
- VERSION = "0.3.0" unless defined?(::AssertDifference::VERSION)
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.0
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-24 00:00:00.000000000Z
12
+ date: 2011-08-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
16
- requirement: &70137295197880 !ruby/object:Gem::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: *70137295197880
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: