public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
add missing site check test [court3nay]
technoweenie (author)
Mon Feb 04 09:03:02 -0800 2008
commit  7550df7dc176efd39c4c6ef06a6b0a482d81ddf5
tree    dcb310b15c58f6de61249f2b02f326af4d7d7ae3
parent  0f9bc01006ede62e6bb5c24cb2ec7ba5c02f17d4
...
18
19
20
 
 
 
 
 
 
 
21
22
23
...
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -18,6 +18,13 @@ class ApplicationControllerTest < Test::Unit::TestCase
0
     @request = ActionController::TestRequest.new
0
     @response = ActionController::TestResponse.new
0
   end
0
+
0
+ def test_should_raise_404_if_no_site
0
+ Site.delete_all
0
+ host! 'test.hosts'
0
+ get :test_host
0
+ assert_response :missing
0
+ end
0
 
0
   def test_should_find_site_by_host
0
     host! 'test.host'

Comments

    No one has commented yet.