simple_assertions 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -4,20 +4,31 @@ Useful assertions for test/unit
4
4
 
5
5
  == Usage
6
6
 
7
- To include all assertions for test/unit do:
7
+ === minitest
8
+
9
+ To include all assertions for +minitest+ do:
10
+
11
+ require 'simple_assertions/minitest'
12
+
13
+ === test/unit
14
+
15
+ To include all assertions for +test/unit+ do:
8
16
 
9
17
  require 'simple_assertions/testunit'
10
18
 
19
+ === manual
11
20
 
12
21
  Or with more control what to include:
13
22
 
14
23
  require 'simple_assertions'
15
24
 
16
- class Test::Unit::TestCase
25
+ class MiniTest::TestCase
17
26
  include SimpleAssertions::AssertErrorsOn
27
+ include SimpleAssertions::AssertRaises
18
28
  end
19
29
 
20
30
 
21
31
  == Assertions
22
32
 
23
33
  * assert_errors_on
34
+ * assert_raises
@@ -0,0 +1,3 @@
1
+ class MiniTest::TestCase
2
+ include SimpleAssertions::AssertErrorsOn
3
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleAssertions
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -26,6 +26,7 @@ files:
26
26
  - lib/simple_assertions.rb
27
27
  - lib/simple_assertions/assert_errors_on.rb
28
28
  - lib/simple_assertions/assert_raises.rb
29
+ - lib/simple_assertions/minitest.rb
29
30
  - lib/simple_assertions/testunit.rb
30
31
  - lib/simple_assertions/version.rb
31
32
  - simple_assertions.gemspec