minitest 1.7.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -3,10 +3,10 @@ name: minitest
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 1
7
- - 7
8
6
  - 2
9
- version: 1.7.2
7
+ - 0
8
+ - 0
9
+ version: 2.0.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Davis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-23 00:00:00 -07:00
17
+ date: 2010-11-11 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -60,16 +60,32 @@ dependencies:
60
60
  type: :development
61
61
  version_requirements: *id003
62
62
  description: |-
63
- minitest/unit is a small and fast replacement for ruby's huge and slow
64
- test/unit. This is meant to be clean and easy to use both as a regular
65
- test writer and for language implementors that need a minimal set of
66
- methods to bootstrap a working unit test suite.
63
+ minitest provides a complete suite of testing facilities supporting
64
+ TDD, BDD, mocking, and benchmarking.
67
65
 
68
- mini/spec is a functionally complete spec engine.
66
+ minitest/unit is a small and incredibly fast unit testing framework.
67
+ It provides a rich set of assertions to make your tests clean and
68
+ readable.
69
69
 
70
- mini/mock, by Steven Baker, is a beautifully tiny mock object framework.
70
+ minitest/spec is a functionally complete spec engine. It hooks onto
71
+ minitest/unit and seamlessly bridges test assertions over to spec
72
+ expectations.
71
73
 
72
- (This package was called miniunit once upon a time)
74
+ minitest/benchmark is an awesome way to assert the performance of your
75
+ algorithms in a repeatable manner. Now you can assert that your newb
76
+ co-worker doesn't replace your linear algorithm with an exponential
77
+ one!
78
+
79
+ minitest/mock by Steven Baker, is a beautifully tiny mock object
80
+ framework.
81
+
82
+ minitest/pride shows pride in testing and adds coloring to your test
83
+ output.
84
+
85
+ minitest/unit is meant to have a clean implementation for language
86
+ implementors that need a minimal set of methods to bootstrap a working
87
+ test suite. For example, there is no magic involved for test-case
88
+ discovery.
73
89
  email:
74
90
  - ryand-ruby@zenspider.com
75
91
  executables: []
@@ -88,12 +104,15 @@ files:
88
104
  - Rakefile
89
105
  - design_rationale.rb
90
106
  - lib/minitest/autorun.rb
107
+ - lib/minitest/benchmark.rb
91
108
  - lib/minitest/mock.rb
109
+ - lib/minitest/pride.rb
92
110
  - lib/minitest/spec.rb
93
111
  - lib/minitest/unit.rb
94
- - test/test_mini_mock.rb
95
- - test/test_mini_spec.rb
96
- - test/test_mini_test.rb
112
+ - test/test_minitest_benchmark.rb
113
+ - test/test_minitest_mock.rb
114
+ - test/test_minitest_spec.rb
115
+ - test/test_minitest_unit.rb
97
116
  has_rdoc: true
98
117
  homepage: http://rubyforge.org/projects/bfts
99
118
  licenses: []
@@ -124,8 +143,9 @@ rubyforge_project: bfts
124
143
  rubygems_version: 1.3.6
125
144
  signing_key:
126
145
  specification_version: 3
127
- summary: minitest/unit is a small and fast replacement for ruby's huge and slow test/unit
146
+ summary: minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking
128
147
  test_files:
129
- - test/test_mini_mock.rb
130
- - test/test_mini_spec.rb
131
- - test/test_mini_test.rb
148
+ - test/test_minitest_benchmark.rb
149
+ - test/test_minitest_mock.rb
150
+ - test/test_minitest_spec.rb
151
+ - test/test_minitest_unit.rb
@@ -1,77 +0,0 @@
1
- require 'minitest/mock'
2
- require 'minitest/unit'
3
-
4
- MiniTest::Unit.autorun
5
-
6
- class TestMiniMock < MiniTest::Unit::TestCase
7
- def setup
8
- @mock = MiniTest::Mock.new.expect(:foo, nil)
9
- @mock.expect(:meaning_of_life, 42)
10
- end
11
-
12
- def test_should_create_stub_method
13
- assert_nil @mock.foo
14
- end
15
-
16
- def test_should_allow_return_value_specification
17
- assert_equal 42, @mock.meaning_of_life
18
- end
19
-
20
- def test_should_blow_up_if_not_called
21
- @mock.foo
22
-
23
- util_verify_bad
24
- end
25
-
26
- def test_should_not_blow_up_if_everything_called
27
- @mock.foo
28
- @mock.meaning_of_life
29
-
30
- assert @mock.verify
31
- end
32
-
33
- def test_should_allow_expectations_to_be_added_after_creation
34
- @mock.expect(:bar, true)
35
- assert @mock.bar
36
- end
37
-
38
- def test_should_not_verify_if_new_expected_method_is_not_called
39
- @mock.foo
40
- @mock.meaning_of_life
41
- @mock.expect(:bar, true)
42
-
43
- util_verify_bad
44
- end
45
-
46
- def test_should_not_verify_if_unexpected_method_is_called
47
- assert_raises NoMethodError do
48
- @mock.unexpected
49
- end
50
- end
51
-
52
- def test_should_blow_up_on_wrong_number_of_arguments
53
- @mock.foo
54
- @mock.meaning_of_life
55
- @mock.expect(:sum, 3, [1, 2])
56
-
57
- assert_raises ArgumentError do
58
- @mock.sum
59
- end
60
- end
61
-
62
- def test_should_blow_up_on_wrong_arguments
63
- @mock.foo
64
- @mock.meaning_of_life
65
- @mock.expect(:sum, 3, [1, 2])
66
-
67
- @mock.sum(2, 4)
68
-
69
- util_verify_bad
70
- end
71
-
72
- def util_verify_bad
73
- assert_raises MockExpectationError do
74
- @mock.verify
75
- end
76
- end
77
- end