##// END OF EJS Templates
Fixed that group filter is escaped on users index....
Jean-Philippe Lang -
r9496:dc7569ecaef6
parent child
Show More
@@ -11,7 +11,7
11
11
12 <% if @groups.present? %>
12 <% if @groups.present? %>
13 <label for='group_id'><%= l(:label_group) %>:</label>
13 <label for='group_id'><%= l(:label_group) %>:</label>
14 <%= select_tag 'group_id', '<option></option>' + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %>
14 <%= select_tag 'group_id', content_tag('option') + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %>
15 <% end %>
15 <% end %>
16
16
17 <label for='name'><%= l(:label_user) %>:</label>
17 <label for='name'><%= l(:label_user) %>:</label>
@@ -74,6 +74,9 class UsersControllerTest < ActionController::TestCase
74 users = assigns(:users)
74 users = assigns(:users)
75 assert users.any?
75 assert users.any?
76 assert_equal([], (users - Group.find(10).users))
76 assert_equal([], (users - Group.find(10).users))
77 assert_select 'select[name=group_id]' do
78 assert_select 'option[value=10][selected=selected]'
79 end
77 end
80 end
78
81
79 def test_show
82 def test_show
General Comments 0
You need to be logged in to leave comments. Login now