1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

basic test for fill_in options propagation

This commit is contained in:
Thomas Walpole 2014-06-19 09:29:12 -07:00
parent 2ce36695eb
commit c93c262578

View file

@ -58,6 +58,15 @@ RSpec.describe Capybara::Session do
end
end
describe "#fill_in" do
it "should warn that :fill_options are not supported" do
expect_any_instance_of(Capybara::Node::Element).to receive(:warn)
.with("Options passed to Capybara::Node#set but the driver doesn't support them")
@session.visit "/with_html"
@session.fill_in 'test_field', with: 'not_moneky', fill_options: { random: true }
end
end
describe "#attach_file" do
context "with multipart form" do
it "should submit an empty form-data section if no file is submitted" do