assert 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +6 -0
  3. data/Gemfile.lock +17 -0
  4. data/README.rdoc +77 -0
  5. data/Rakefile +7 -0
  6. data/assert.gemspec +21 -0
  7. data/examples/empty_test.rb +5 -0
  8. data/examples/results_test.rb +25 -0
  9. data/examples/single_test.rb +9 -0
  10. data/lib/assert.rb +8 -0
  11. data/lib/assert/assertions.rb +253 -0
  12. data/lib/assert/context.rb +196 -0
  13. data/lib/assert/options.rb +43 -0
  14. data/lib/assert/rake_tasks.rb +95 -0
  15. data/lib/assert/result.rb +164 -0
  16. data/lib/assert/result_set.rb +14 -0
  17. data/lib/assert/runner.rb +60 -0
  18. data/lib/assert/setup/autorun.rb +34 -0
  19. data/lib/assert/setup/helpers.rb +62 -0
  20. data/lib/assert/setup/suite.rb +12 -0
  21. data/lib/assert/setup/view.rb +11 -0
  22. data/lib/assert/suite.rb +128 -0
  23. data/lib/assert/test.rb +90 -0
  24. data/lib/assert/version.rb +3 -0
  25. data/lib/assert/view/base.rb +54 -0
  26. data/lib/assert/view/terminal.rb +138 -0
  27. data/test/assertions/assert_block_test.rb +39 -0
  28. data/test/assertions/assert_instance_of_test.rb +43 -0
  29. data/test/assertions/assert_kind_of_test.rb +43 -0
  30. data/test/assertions/assert_not_block_test.rb +39 -0
  31. data/test/assertions/assert_not_instance_of_test.rb +43 -0
  32. data/test/assertions/assert_not_kind_of_test.rb +43 -0
  33. data/test/assertions/assert_not_respond_to_test.rb +43 -0
  34. data/test/assertions/assert_nothing_raised_test.rb +46 -0
  35. data/test/assertions/assert_raises_test.rb +49 -0
  36. data/test/assertions/assert_respond_to_test.rb +43 -0
  37. data/test/assertions_test.rb +334 -0
  38. data/test/context/class_methods_test.rb +314 -0
  39. data/test/context_test.rb +288 -0
  40. data/test/fixtures/inherited_stuff.rb +36 -0
  41. data/test/fixtures/sample_context.rb +13 -0
  42. data/test/helper.rb +52 -0
  43. data/test/irb.rb +10 -0
  44. data/test/options_test.rb +78 -0
  45. data/test/result_set_test.rb +89 -0
  46. data/test/result_test.rb +255 -0
  47. data/test/runner_test.rb +33 -0
  48. data/test/suite_test.rb +200 -0
  49. data/test/test/running_test.rb +327 -0
  50. data/test/test_test.rb +184 -0
  51. data/test/view_test.rb +35 -0
  52. metadata +155 -0
@@ -0,0 +1,35 @@
1
+ require 'assert'
2
+
3
+ require 'assert/view/base'
4
+ require 'assert/suite'
5
+
6
+ module Assert::View
7
+
8
+ class BaseTest < Assert::Context
9
+ desc "the view base"
10
+ setup do
11
+ @view = Assert::View::Base.new(Assert::Suite.new, StringIO.new("", "w+"))
12
+ end
13
+ subject{ @view }
14
+
15
+ INSTANCE_METHODS = [
16
+ :render, :print_runtime_result, :suite, :options
17
+ ]
18
+ INSTANCE_METHODS.each do |method|
19
+ should "respond to the instance method ##{method}" do
20
+ assert_respond_to subject, method
21
+ end
22
+ end
23
+
24
+ CLASS_METHODS = [
25
+ :options
26
+ ]
27
+ CLASS_METHODS.each do |method|
28
+ should "respond to the class method ##{method}" do
29
+ assert_respond_to subject.class, method
30
+ end
31
+ end
32
+
33
+ end
34
+
35
+ end
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: assert
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Kelly Redding
14
+ - Collin Redding
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-08-14 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ hash: 15
28
+ segments:
29
+ - 1
30
+ - 0
31
+ version: "1.0"
32
+ version_requirements: *id001
33
+ prerelease: false
34
+ name: bundler
35
+ type: :development
36
+ description: Test::Unit style testing framework, just better than Test::Unit.
37
+ email:
38
+ - kelly@kelredd.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gitignore
47
+ - Gemfile
48
+ - Gemfile.lock
49
+ - README.rdoc
50
+ - Rakefile
51
+ - assert.gemspec
52
+ - examples/empty_test.rb
53
+ - examples/results_test.rb
54
+ - examples/single_test.rb
55
+ - lib/assert.rb
56
+ - lib/assert/assertions.rb
57
+ - lib/assert/context.rb
58
+ - lib/assert/options.rb
59
+ - lib/assert/rake_tasks.rb
60
+ - lib/assert/result.rb
61
+ - lib/assert/result_set.rb
62
+ - lib/assert/runner.rb
63
+ - lib/assert/setup/autorun.rb
64
+ - lib/assert/setup/helpers.rb
65
+ - lib/assert/setup/suite.rb
66
+ - lib/assert/setup/view.rb
67
+ - lib/assert/suite.rb
68
+ - lib/assert/test.rb
69
+ - lib/assert/version.rb
70
+ - lib/assert/view/base.rb
71
+ - lib/assert/view/terminal.rb
72
+ - test/assertions/assert_block_test.rb
73
+ - test/assertions/assert_instance_of_test.rb
74
+ - test/assertions/assert_kind_of_test.rb
75
+ - test/assertions/assert_not_block_test.rb
76
+ - test/assertions/assert_not_instance_of_test.rb
77
+ - test/assertions/assert_not_kind_of_test.rb
78
+ - test/assertions/assert_not_respond_to_test.rb
79
+ - test/assertions/assert_nothing_raised_test.rb
80
+ - test/assertions/assert_raises_test.rb
81
+ - test/assertions/assert_respond_to_test.rb
82
+ - test/assertions_test.rb
83
+ - test/context/class_methods_test.rb
84
+ - test/context_test.rb
85
+ - test/fixtures/inherited_stuff.rb
86
+ - test/fixtures/sample_context.rb
87
+ - test/helper.rb
88
+ - test/irb.rb
89
+ - test/options_test.rb
90
+ - test/result_set_test.rb
91
+ - test/result_test.rb
92
+ - test/runner_test.rb
93
+ - test/suite_test.rb
94
+ - test/test/running_test.rb
95
+ - test/test_test.rb
96
+ - test/view_test.rb
97
+ homepage: http://github.com/teaminsight/assert
98
+ licenses: []
99
+
100
+ post_install_message:
101
+ rdoc_options: []
102
+
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ requirements: []
124
+
125
+ rubyforge_project:
126
+ rubygems_version: 1.7.2
127
+ signing_key:
128
+ specification_version: 3
129
+ summary: Test::Unit style testing framework, just better than Test::Unit.
130
+ test_files:
131
+ - test/assertions/assert_block_test.rb
132
+ - test/assertions/assert_instance_of_test.rb
133
+ - test/assertions/assert_kind_of_test.rb
134
+ - test/assertions/assert_not_block_test.rb
135
+ - test/assertions/assert_not_instance_of_test.rb
136
+ - test/assertions/assert_not_kind_of_test.rb
137
+ - test/assertions/assert_not_respond_to_test.rb
138
+ - test/assertions/assert_nothing_raised_test.rb
139
+ - test/assertions/assert_raises_test.rb
140
+ - test/assertions/assert_respond_to_test.rb
141
+ - test/assertions_test.rb
142
+ - test/context/class_methods_test.rb
143
+ - test/context_test.rb
144
+ - test/fixtures/inherited_stuff.rb
145
+ - test/fixtures/sample_context.rb
146
+ - test/helper.rb
147
+ - test/irb.rb
148
+ - test/options_test.rb
149
+ - test/result_set_test.rb
150
+ - test/result_test.rb
151
+ - test/runner_test.rb
152
+ - test/suite_test.rb
153
+ - test/test/running_test.rb
154
+ - test/test_test.rb
155
+ - test/view_test.rb