test_extensions 0.0.1 → 0.1.0

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.
Files changed (3) hide show
  1. data/Readme +8 -6
  2. data/lib/test_extensions.rb +1 -0
  3. metadata +15 -6
data/Readme CHANGED
@@ -21,19 +21,21 @@ This is a collection of methods and features for Test::Unit that are missing fro
21
21
 
22
22
  === Useful assertion methods
23
23
 
24
- * assert_exception
25
- * assert_changed
26
- * assert_includes / assert_contains
24
+ * <b><tt>assert_exception</tt></b>: make assetions about an exception that should be raised -- not just the _class_ of the exception but other details like the message
25
+ * <b><tt>assert_includes</tt></b> / <tt>assert_contains</tt>:</b> assert that +haystack+ contains +needle+; works for anything that responds to <tt>include?</tt> (arrays, strings, ...)
26
+ * <b><tt>assert_match Regexp.loose_join('key phrase 1', 'key phrase 2')</tt></b>
27
+ assert_match Regexp.loose_join('key phrase 1', 'key phrase 2'), "Some really long string that you want to make sure contains both key phrase 1 and key phrase 2, in that order, but you don't care too much about the stuff in between, and you don't really want to hand-craft the regular expression or worry about escaping things like '.'s and '*'s yourself."
28
+ * <b><tt>assert_changed</tt></b>: assert that a variable changed state during the course of the block (not really useful)
27
29
 
28
- See the documentation for each method for details. (These methods are currently part of http://qualitysmithext.rubyforge.org/)
30
+ See the individual method documentation for each method for details. These methods are currently part of http://qualitysmithext.rubyforge.org/.
29
31
 
30
32
  Rails-specific:
31
33
  * assert_user_error
32
34
 
33
35
  === For testing command-line programs
34
36
 
35
- * <tt>capture_output</tt> -- captures the standard output/error from the method under test (rather than letting it print to the screen) so that you can make assertions about it.
36
- * <tt>simulate_input</tt> -- if your application is expecting some kind of user input on stdin, this method can be used to simulate the input, so that your test is completely automated and self-contained.
37
+ * <b><tt>capture_output</tt></b> -- captures the standard output/error from the method under test (rather than letting it print to the screen) so that you can make assertions about it.
38
+ * <b><tt>simulate_input</tt></b> -- if your application is expecting some kind of user input on stdin, this method can be used to simulate the input, so that your test is completely automated and self-contained.
37
39
 
38
40
  == Requirements
39
41
 
@@ -6,6 +6,7 @@ require 'facets/core/kernel/require_local'
6
6
  require_local 'test_extensions/test_colorizer'
7
7
 
8
8
  gem 'qualitysmith_extensions'
9
+ require 'qualitysmith_extensions/regexp/join'
9
10
  require 'qualitysmith_extensions/kernel/capture_output.rb'
10
11
  require 'qualitysmith_extensions/kernel/simulate_input.rb'
11
12
 
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: test_extensions
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2007-04-30 00:00:00 -07:00
8
- summary: ...
6
+ version: 0.1.0
7
+ date: 2007-05-01 00:00:00 -07:00
8
+ summary: A collection of user-contributed enhancements and new methods for Test::Unit
9
9
  require_paths:
10
10
  - lib
11
11
  email:
12
- homepage: http://test_extensions.rubyforge.org
13
- rubyforge_project: test_extensions
14
- description: ...
12
+ homepage: http://test-extensions.rubyforge.org
13
+ rubyforge_project: test-extensions
14
+ description: A collection of user-contributed enhancements and new methods for Test::Unit
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -58,6 +58,15 @@ dependencies:
58
58
  - !ruby/object:Gem::Version
59
59
  version: 0.0.0
60
60
  version:
61
+ - !ruby/object:Gem::Dependency
62
+ name: colored
63
+ version_requirement:
64
+ version_requirements: !ruby/object:Gem::Version::Requirement
65
+ requirements:
66
+ - - ">"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.0
69
+ version:
61
70
  - !ruby/object:Gem::Dependency
62
71
  name: qualitysmith_extensions
63
72
  version_requirement: