remove trailing white-spaces from test/functional/custom_fields_controller_test.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6819 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-08-30 15:55:09 +00:00
parent a97470714c
commit bbb8fd8bae
1 changed files with 7 additions and 7 deletions

View File

@ -5,12 +5,12 @@
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@ -23,14 +23,14 @@ class CustomFieldsController; def rescue_action(e) raise e end; end
class CustomFieldsControllerTest < ActionController::TestCase class CustomFieldsControllerTest < ActionController::TestCase
fixtures :custom_fields, :trackers, :users fixtures :custom_fields, :trackers, :users
def setup def setup
@controller = CustomFieldsController.new @controller = CustomFieldsController.new
@request = ActionController::TestRequest.new @request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new @response = ActionController::TestResponse.new
@request.session[:user_id] = 1 @request.session[:user_id] = 1
end end
def test_get_new_issue_custom_field def test_get_new_issue_custom_field
get :new, :type => 'IssueCustomField' get :new, :type => 'IssueCustomField'
assert_response :success assert_response :success
@ -50,12 +50,12 @@ class CustomFieldsControllerTest < ActionController::TestCase
:content => 'Version' :content => 'Version'
} }
end end
def test_get_new_with_invalid_custom_field_class_should_redirect_to_list def test_get_new_with_invalid_custom_field_class_should_redirect_to_list
get :new, :type => 'UnknownCustomField' get :new, :type => 'UnknownCustomField'
assert_redirected_to '/custom_fields' assert_redirected_to '/custom_fields'
end end
def test_post_new_list_custom_field def test_post_new_list_custom_field
assert_difference 'CustomField.count' do assert_difference 'CustomField.count' do
post :new, :type => "IssueCustomField", post :new, :type => "IssueCustomField",
@ -71,7 +71,7 @@ class CustomFieldsControllerTest < ActionController::TestCase
:is_required =>"0", :is_required =>"0",
:field_format => "list", :field_format => "list",
:tracker_ids => ["1", ""]} :tracker_ids => ["1", ""]}
end end
assert_redirected_to '/custom_fields?tab=IssueCustomField' assert_redirected_to '/custom_fields?tab=IssueCustomField'
field = IssueCustomField.find_by_name('test_post_new_list') field = IssueCustomField.find_by_name('test_post_new_list')
assert_not_nil field assert_not_nil field