1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/session_without_javascript_support_spec.rb
Jonas Nicklas 6204142a8c Revert "added click_element with specs (only works in webdriver so far)"
I think I changed my mind about this, I think this method clutters the API

This reverts commit 7b8e6a640d.
2009-12-17 18:22:12 +01:00

15 lines
No EOL
392 B
Ruby

require File.expand_path('spec_helper', File.dirname(__FILE__))
require 'nokogiri'
shared_examples_for "session without javascript support" do
describe "#evaluate_script" do
before{ @session.visit('/with_js') }
it "should raise an error" do
running {
@session.evaluate_script("1+5")
}.should raise_error(Capybara::NotSupportedByDriverError)
end
end
end