File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- require '. /unsocial.rb'
1
+ require File . expand_path ( '.. /unsocial' , __FILE__ )
2
2
require 'test/unit'
3
3
require 'rack/test'
4
4
@@ -22,18 +22,18 @@ def test_not_found_should_respond_with_410
22
22
assert_equal 410 , last_response . status
23
23
end
24
24
25
- def test_robots_txt_should_respond_with_200
25
+ def test_robots_txt_should_respond_ok
26
26
get '/robots.txt'
27
- assert_equal 200 , last_response . status
27
+ assert last_response . ok?
28
28
end
29
29
30
- def test_google_verification_should_respond_with_200
30
+ def test_google_verification_should_respond_ok
31
31
get '/google3937f044695dbc67.html'
32
- assert_equal 200 , last_response . status
32
+ assert last_response . ok?
33
33
end
34
34
35
- def test_sitemap_xml_should_respond_with_200
35
+ def test_sitemap_xml_should_respond_ok
36
36
get '/sitemap.xml'
37
- assert_equal 200 , last_response . status
37
+ assert last_response . ok?
38
38
end
39
39
end
You can’t perform that action at this time.
0 commit comments