Revision 233fe7a3
Added by Oleg Dovzhenko almost 6 years ago
test/controllers/api/v2/settings_controller_test.rb | ||
---|---|---|
assert_no_match /location_fact/, @response.body
|
||
SETTINGS[:locations_enabled] = true
|
||
end
|
||
|
||
test_attributes :pid => 'fb8b0bf1-b475-435a-926b-861aa18d31f1'
|
||
test "should update login page footer text with long value" do
|
||
value = RFauxFactory.gen_alpha 1000
|
||
setting = Setting.find_by_name("login_text")
|
||
put :update, params: { :id => setting.id, :setting => { :value => value } }
|
||
assert_equal JSON.parse(@response.body)['value'], value, "Can't update login_text setting with valid value #{value}"
|
||
end
|
||
|
||
test_attributes :pid => '7a56f194-8bde-4dbf-9993-62eb6ab10733'
|
||
test "should update login page footer text with empty value" do
|
||
setting = Setting.find_by_name("login_text")
|
||
put :update, params: { :id => setting.id, :setting => { :value => "" } }
|
||
assert_equal JSON.parse(@response.body)['value'], "", "Can't update login_text setting with empty value"
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #23953 - Port robottelo tests for settings