Skip to content

Commit 6b22f6e

Browse files
committed
updated the minitest page a bit
Some links were quite outdated or unavailable so I updated these. I also changed the assertions of the specs part and used the more common idioms.
1 parent 0205d25 commit 6b22f6e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

testing/minitest.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Minitest
22
--------
33

4-
Since Ruby 1.9, [Minitest](http://rubydoc.info/gems/minitest/2.0.1/frames) is
4+
Since Ruby 1.9, [Minitest](https://github.com/seattlerb/minitest) is
55
shipped with the standard library. If you want to use it on 1.8, it is still
6-
installable via Rubygems.
6+
available via Rubygems.
77

8-
After installing Minitest, setting it up works similar to `Test::Unit`:
8+
After installing Minitest, setting it up works similar to `Test::Unit`.
99

1010
If you have multiple test files, you could create a test helper file and do
1111
all the setup in there:
@@ -73,7 +73,7 @@ end
7373
describe "my example app" do
7474
it "should successfully return a greeting" do
7575
get '/'
76-
assert_equal 'Welcome to my page!', last_response.body
76+
last_response.body.must_include 'Welcome to my page!'
7777
end
7878
end
7979
```
@@ -96,7 +96,7 @@ describe "my example app" do
9696
bench_performance_linear "welcome message", 0.9999 do |n|
9797
n.times do
9898
get '/'
99-
assert_equal 'Welcome to my page!', last_response.body
99+
last_response.body.must_include 'Welcome to my page!'
100100
end
101101
end
102102
end
@@ -123,9 +123,6 @@ More on [Rake::TestTask](http://rake.rubyforge.org/classes/Rake/TestTask.html)
123123
**MiniTest Resources**
124124

125125
* [Source on github](https://github.com/seattlerb/minitest)
126-
* [Documentation](http://rdoc.info/gems/minitest/2.0.2/frames)
126+
* [Documentation](http://rdoc.info/gems/minitest)
127127
* [Official Blog Archive](http://blog.zenspider.com/minitest/)
128-
* [1.9.2 Stdlib Documentation](http://rdoc.info/stdlib/minitest/1.9.2/frames)
129-
* [Bootspring MiniTest Blog Post](http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/)
130-
131128

0 commit comments

Comments
 (0)