aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/test_request_test.rb
diff options
context:
space:
mode:
authorMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-21 22:33:50 +0200
committerMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-24 12:24:07 +0200
commit3a161e65e76a83be6d62c424227fe10b5b66b77d (patch)
tree0c16ac99bd0b4f9735e0dc9e85778af255819e13 /actionpack/test/dispatch/test_request_test.rb
parent90bcb6dea7f8fc8b93b4266180465fc0c0785c01 (diff)
downloadrails-3a161e65e76a83be6d62c424227fe10b5b66b77d.tar.gz
rails-3a161e65e76a83be6d62c424227fe10b5b66b77d.tar.bz2
rails-3a161e65e76a83be6d62c424227fe10b5b66b77d.zip
Get rid of mocha tests - part 1
Diffstat (limited to 'actionpack/test/dispatch/test_request_test.rb')
-rw-r--r--actionpack/test/dispatch/test_request_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/test_request_test.rb b/actionpack/test/dispatch/test_request_test.rb
index ede1cec4e6..51c469a61a 100644
--- a/actionpack/test/dispatch/test_request_test.rb
+++ b/actionpack/test/dispatch/test_request_test.rb
@@ -53,10 +53,8 @@ class TestRequestTest < ActiveSupport::TestCase
assert_cookies({"user_name" => "david"}, req.cookie_jar)
end
- test "does not complain when Rails.application is nil" do
- Rails.stubs(:application).returns(nil)
+ test "does not complain when there is no application config" do
req = ActionDispatch::TestRequest.create({})
-
assert_equal false, req.env.empty?
end