This commit is contained in:
r888888888
2013-07-18 16:01:17 -07:00
parent e9b877f326
commit f017a0ee11
3 changed files with 8 additions and 4 deletions

View File

@@ -6,6 +6,10 @@ class CurrentUserTest < ActiveSupport::TestCase
CurrentUser.ip_addr = nil
end
teardown do
Thread.current[:safe_mode] = false
end
context ".safe_mode?" do
should "return true if the host contains the string host" do
req = mock(:host => "safebooru")