From 655234cb31041ca4ec27308027aa6ef722c31e1e Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 29 Oct 2010 13:53:35 +0200 Subject: [PATCH] Remove spec for Session#drag --- lib/capybara/spec/session/javascript.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/capybara/spec/session/javascript.rb b/lib/capybara/spec/session/javascript.rb index c902b462..bd010cac 100644 --- a/lib/capybara/spec/session/javascript.rb +++ b/lib/capybara/spec/session/javascript.rb @@ -8,15 +8,6 @@ shared_examples_for "session with javascript support" do Capybara.default_wait_time = 0 end - describe '#drag' do - it "should drag and drop an object" do - pending "drag/drop is currently broken under celerity/culerity" if @session.driver.is_a?(Capybara::Driver::Celerity) - @session.visit('/with_js') - @session.drag('//div[@id="drag"]', '//div[@id="drop"]') - @session.find('//div[contains(., "Dropped!")]').should_not be_nil - end - end - describe 'Node#drag_to' do it "should drag and drop an object" do pending "drag/drop is currently broken under celerity/culerity" if @session.driver.is_a?(Capybara::Driver::Celerity) @@ -27,7 +18,7 @@ shared_examples_for "session with javascript support" do @session.find('//div[contains(., "Dropped!")]').should_not be_nil end end - + describe '#find' do it "should allow triggering of custom JS events" do pending "cannot figure out how to do this with selenium" if @session.mode == :selenium