diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 15:35:39 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 15:35:39 +0200 |
commit | 047a76009a869baef2f58023f42ea7e5388c1381 (patch) | |
tree | 019c7e277708cb3f8968cb5bdda024453676c76a /spec/support | |
parent | 4434f93aa984aabbb5bc35225f0ffe92c0b6f05d (diff) | |
download | gitlab-ce-047a76009a869baef2f58023f42ea7e5388c1381.tar.gz |
Remove chosen from tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/chosen_helper.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/support/chosen_helper.rb b/spec/support/chosen_helper.rb deleted file mode 100644 index 42c9342c77a..00000000000 --- a/spec/support/chosen_helper.rb +++ /dev/null @@ -1,21 +0,0 @@ -# Chosen programmatic helper -# It allows you to select value from chosen select -# -# Params -# value - real value of selected item -# opts - options containing css selector -# -# Usage: -# -# chosen(2, from: '#user_ids') -# - -module ChosenHelper - def chosen(value, options={}) - raise "Must pass a hash containing 'from'" if not options.is_a?(Hash) or not options.has_key?(:from) - - selector = options[:from] - - page.execute_script("$('#{selector}').val('#{value}').trigger('chosen:updated');") - end -end |