Project

General

Profile

« Previous | Next » 

Revision 428b1cfb

Added by Joseph Magen about 10 years ago

fixes #5506 - added scoped search to SmartProxy for UI and API v2

View differences:

test/functional/smart_proxies_controller_test.rb
assert_equal "Unable to communicate with the proxy: it's down", flash[:error]
end
test "should search by name" do
get :index, { :search => "name=\"DNS Proxy\"" }, set_session_user
assert_response :success
refute_empty assigns(:smart_proxies)
assert assigns(:smart_proxies).include?(smart_proxies(:three))
end
test "should search by feature" do
get :index, { :search => "feature=DNS" }, set_session_user
assert_response :success
refute_empty assigns(:smart_proxies)
assert assigns(:smart_proxies).include?(smart_proxies(:three))
end
end

Also available in: Unified diff