##// END OF EJS Templates
remove trailing white-spaces from test/functional/custom_fields_controller_test.rb....
Toshi MARUYAMA -
r6699:bbb8fd8baed1
parent child
Show More
@@ -5,12 +5,12
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 #
8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 #
13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # 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
23 23
24 24 class CustomFieldsControllerTest < ActionController::TestCase
25 25 fixtures :custom_fields, :trackers, :users
26
26
27 27 def setup
28 28 @controller = CustomFieldsController.new
29 29 @request = ActionController::TestRequest.new
30 30 @response = ActionController::TestResponse.new
31 31 @request.session[:user_id] = 1
32 32 end
33
33
34 34 def test_get_new_issue_custom_field
35 35 get :new, :type => 'IssueCustomField'
36 36 assert_response :success
@@ -50,12 +50,12 class CustomFieldsControllerTest < ActionController::TestCase
50 50 :content => 'Version'
51 51 }
52 52 end
53
53
54 54 def test_get_new_with_invalid_custom_field_class_should_redirect_to_list
55 55 get :new, :type => 'UnknownCustomField'
56 56 assert_redirected_to '/custom_fields'
57 57 end
58
58
59 59 def test_post_new_list_custom_field
60 60 assert_difference 'CustomField.count' do
61 61 post :new, :type => "IssueCustomField",
@@ -71,7 +71,7 class CustomFieldsControllerTest < ActionController::TestCase
71 71 :is_required =>"0",
72 72 :field_format => "list",
73 73 :tracker_ids => ["1", ""]}
74 end
74 end
75 75 assert_redirected_to '/custom_fields?tab=IssueCustomField'
76 76 field = IssueCustomField.find_by_name('test_post_new_list')
77 77 assert_not_nil field
General Comments 0
You need to be logged in to leave comments. Login now