This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'redis' | |
require 'redis/distributed' | |
r = Redis::Distributed.new %w[redis://host1:6379 redis://host2:6379] | |
# show node for key "foo" | |
p r.node_for("foo") | |
# set the value of "foo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def chosen_select (element_id, option_number) | |
page.execute_script("$('##{element_id}').next('.chzn-container').trigger('mousedown')") | |
page.execute_script("$('##{element_id}_chzn_o_#{option_number}').trigger('mouseover').trigger('mouseup')") | |
end |