From 047a76009a869baef2f58023f42ea7e5388c1381 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 11 Jan 2014 15:35:39 +0200 Subject: Remove chosen from tests Signed-off-by: Dmitriy Zaporozhets --- spec/support/chosen_helper.rb | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 spec/support/chosen_helper.rb (limited to 'spec/support') 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 -- cgit v1.2.1