1
1
Minitest
2
2
--------
3
3
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
5
5
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.
7
7
8
- After installing Minitest, setting it up works similar to ` Test::Unit ` :
8
+ After installing Minitest, setting it up works similar to ` Test::Unit ` .
9
9
10
10
If you have multiple test files, you could create a test helper file and do
11
11
all the setup in there:
73
73
describe " my example app" do
74
74
it " should successfully return a greeting" do
75
75
get ' /'
76
- assert_equal ' Welcome to my page!' , last_response.body
76
+ last_response.body.must_include ' Welcome to my page!'
77
77
end
78
78
end
79
79
```
@@ -96,7 +96,7 @@ describe "my example app" do
96
96
bench_performance_linear " welcome message" , 0.9999 do |n |
97
97
n.times do
98
98
get ' /'
99
- assert_equal ' Welcome to my page!' , last_response.body
99
+ last_response.body.must_include ' Welcome to my page!'
100
100
end
101
101
end
102
102
end
@@ -123,9 +123,6 @@ More on [Rake::TestTask](http://rake.rubyforge.org/classes/Rake/TestTask.html)
123
123
** MiniTest Resources**
124
124
125
125
* [ 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 )
127
127
* [ 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
-
131
128
0 commit comments