diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-27 07:40:13 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-27 07:40:13 -0700 |
commit | f3807a8ce6de5ac80f3c24c12e493f0ddce2aad0 (patch) | |
tree | d78918fa143c377a487b1ea9bc207c5e58f44527 /actionpack/test/controller | |
parent | 67166c4e545952950a4bb724f6c4b9bd869e43bb (diff) | |
parent | 4d7f53379a0dc59f2f33a4b904a06c047580a691 (diff) | |
download | rails-f3807a8ce6de5ac80f3c24c12e493f0ddce2aad0.tar.gz rails-f3807a8ce6de5ac80f3c24c12e493f0ddce2aad0.tar.bz2 rails-f3807a8ce6de5ac80f3c24c12e493f0ddce2aad0.zip |
Merge pull request #8043 from senny/remove_trailing_whitespace_in_actionpack
remove trailing whitespace within actionpack [ci skip]
Diffstat (limited to 'actionpack/test/controller')
6 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/test/controller/default_url_options_with_filter_test.rb b/actionpack/test/controller/default_url_options_with_filter_test.rb index ef028e8cdb..9a9ab17fee 100644 --- a/actionpack/test/controller/default_url_options_with_filter_test.rb +++ b/actionpack/test/controller/default_url_options_with_filter_test.rb @@ -16,7 +16,7 @@ class ControllerWithBeforeFilterAndDefaultUrlOptions < ActionController::Base def default_url_options {:locale => "de"} - end + end end class ControllerWithBeforeFilterAndDefaultUrlOptionsTest < ActionController::TestCase diff --git a/actionpack/test/controller/http_basic_authentication_test.rb b/actionpack/test/controller/http_basic_authentication_test.rb index 7286b249c7..2dcfda02a7 100644 --- a/actionpack/test/controller/http_basic_authentication_test.rb +++ b/actionpack/test/controller/http_basic_authentication_test.rb @@ -19,7 +19,7 @@ class HttpBasicAuthenticationTest < ActionController::TestCase def show render :text => 'Only for loooooong credentials' end - + def search render :text => 'All inline' end @@ -118,7 +118,7 @@ class HttpBasicAuthenticationTest < ActionController::TestCase assert assigns(:logged_in) assert_equal 'Definitely Maybe', @response.body end - + test "authenticate with class method" do @request.env['HTTP_AUTHORIZATION'] = encode_credentials('David', 'Goliath') get :search diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index b21d35c846..d183b0be17 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -240,7 +240,7 @@ class RespondToControllerTest < ActionController::TestCase assert_equal 'HTML', @response.body @request.accept = "text/javascript, text/html" - + assert_raises(ActionController::UnknownFormat) do xhr :get, :just_xml end diff --git a/actionpack/test/controller/new_base/middleware_test.rb b/actionpack/test/controller/new_base/middleware_test.rb index ccef060863..6b7b5e10e3 100644 --- a/actionpack/test/controller/new_base/middleware_test.rb +++ b/actionpack/test/controller/new_base/middleware_test.rb @@ -25,14 +25,14 @@ module MiddlewareTest result end end - + class BlockMiddleware attr_accessor :configurable_message def initialize(app, &block) @app = app yield(self) if block_given? end - + def call(env) result = @app.call(env) result[1]["Configurable-Message"] = configurable_message diff --git a/actionpack/test/controller/new_base/render_partial_test.rb b/actionpack/test/controller/new_base/render_partial_test.rb index b4a25c49c9..2f1aa22208 100644 --- a/actionpack/test/controller/new_base/render_partial_test.rb +++ b/actionpack/test/controller/new_base/render_partial_test.rb @@ -28,7 +28,7 @@ module RenderPartial @test_unchanged = 'hello' end end - + class ChildController < BasicController; end class TestPartial < Rack::TestCase diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb index 97ede35317..8bf3096888 100644 --- a/actionpack/test/controller/send_file_test.rb +++ b/actionpack/test/controller/send_file_test.rb @@ -134,7 +134,7 @@ class SendFileTest < ActionController::TestCase @controller.headers = {} assert_raise(ArgumentError){ @controller.send(:send_file_headers!, options) } end - + def test_send_file_headers_guess_type_from_extension { 'image.png' => 'image/png', |