afurmanov-clicase 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -3
- data/VERSION.yml +1 -1
- data/clicase.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
= CliCase -
|
1
|
+
= CliCase - Gem extending Shoulda or Test::Unit with macros for command line apps testing
|
2
2
|
|
3
|
-
|
3
|
+
= Basic Usage
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
sudo gem install afurmanov-clicase
|
7
|
+
|
8
|
+
== Example
|
9
|
+
Assuming you decided to write a new command line utility CliApp and you know that CliApp#run is its entry point. You may start with writing simplest test:
|
10
|
+
|
11
|
+
requie 'clicase'
|
4
12
|
|
5
13
|
class CliTest < Test::Unit::TestCase
|
6
14
|
run_command_line_as {CliApp.run}
|
@@ -11,6 +19,8 @@ When you start thinking about writing ruby command line utility you likely want
|
|
11
19
|
end
|
12
20
|
end
|
13
21
|
|
22
|
+
= Shortcumings
|
23
|
+
|
24
|
+
* Only tested on the 1.8.7 Ruby implementations with Shoulda 2.10.1
|
14
25
|
|
15
|
-
Work in progress...
|
16
26
|
|
data/VERSION.yml
CHANGED
data/clicase.gemspec
CHANGED