require 'leaflet-draw-rails/shape' module Leaflet::Draw module Rails::Testing class Circle < Shape def draw! @browser.move_to(*@points.first) @browser.click_and_hold @browser.move_to(*@points.second) @browser.release end end end end