assertions 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +5 -0
  2. data/README.txt +7 -6
  3. data/Rakefile +1 -1
  4. data/lib/assertions.rb +2 -2
  5. metadata +4 -4
@@ -1,3 +1,8 @@
1
+ === 1.1.0 / 2008-06-08
2
+ Make the failure message when an exception does not have the expected message
3
+ display the expected message and the actual message on top of each other, for
4
+ easy comparisons.
5
+
1
6
  === 1.0.0 / 2008-06-06
2
7
  First production release of assertions; full documentation is provided.
3
8
 
data/README.txt CHANGED
@@ -6,14 +6,15 @@ Project Page: http://rubyforge.org/projects/assertions/
6
6
 
7
7
  This package adds some additional assertions to Test::Unit::Assertions,
8
8
  including:
9
- * Assertions for all of the comparison operators (assert_greater_than,
10
- assert_less_than_or_equal_to, etc.). Shorter aliases also are provided
11
- for these (assert_gt, assert_le, etc.).
9
+ * Assertions for all of the comparison operators
10
+ (<code>assert_greater_than</code>, <code>assert_less_than_or_equal_to</code>,
11
+ etc.). Shorter aliases also are provided for these (<code>assert_gt</code>,
12
+ <code>assert_le</code>, etc.).
12
13
  * An assertion that verifies that a given block raises a specified exception
13
- with a specified message (assert_raise_message). This allows full testing
14
- of error messages.
14
+ with a specified message (<code>assert_raise_message</code>).
15
+ This allows full testing of error messages.
15
16
  * An assertion that verifies that a given block contains an assertion that
16
- fails, which can be used to test new assertions.
17
+ fails (<code>assert_fail</code>), which can be used to test new assertions.
17
18
 
18
19
  == PROBLEMS:
19
20
 
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'hoe'
7
7
 
8
8
  $stderr = STDERR
9
9
 
10
- Hoe.new('assertions', "1.0.0") do |p|
10
+ Hoe.new('assertions', "1.1.0") do |p|
11
11
  p.remote_rdoc_dir = ''
12
12
  p.developer('DesigningPatterns', 'technical.inquiries@designingpatterns.com')
13
13
  end
@@ -189,9 +189,9 @@ module Assertions
189
189
  end
190
190
 
191
191
  full_message = build_message(message,
192
- "<?> exception message expected but was\n?",
192
+ "<?> exception message expected but was\n<?>",
193
193
  expected_exception_message,
194
- actual_exception)
194
+ actual_exception.message)
195
195
  assert_block(full_message) do
196
196
  expected_exception_message == actual_exception.message
197
197
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DesigningPatterns
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-07 00:00:00 -04:00
12
+ date: 2008-06-09 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.5.3
23
23
  version:
24
- description: "This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (assert_greater_than, assert_less_than_or_equal_to, etc.). Shorter aliases also are provided for these (assert_gt, assert_le, etc.). * An assertion that verifies that a given block raises a specified exception with a specified message (assert_raise_message). This allows full testing of error messages. * An assertion that verifies that a given block contains an assertion that fails, which can be used to test new assertions."
24
+ description: "This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (<code>assert_greater_than</code>, <code>assert_less_than_or_equal_to</code>, etc.). Shorter aliases also are provided for these (<code>assert_gt</code>, <code>assert_le</code>, etc.). * An assertion that verifies that a given block raises a specified exception with a specified message (<code>assert_raise_message</code>). This allows full testing of error messages. * An assertion that verifies that a given block contains an assertion that fails (<code>assert_fail</code>), which can be used to test new assertions."
25
25
  email:
26
26
  - technical.inquiries@designingpatterns.com
27
27
  executables: []
@@ -66,6 +66,6 @@ rubyforge_project: assertions
66
66
  rubygems_version: 1.0.1
67
67
  signing_key:
68
68
  specification_version: 2
69
- summary: "This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (assert_greater_than, assert_less_than_or_equal_to, etc.)"
69
+ summary: "This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (<code>assert_greater_than</code>, <code>assert_less_than_or_equal_to</code>, etc.)"
70
70
  test_files:
71
71
  - test/test_assertions.rb