spec/page-object/elements/form_spec.rb in page-object-0.2 vs spec/page-object/elements/form_spec.rb in page-object-0.2.1
- old
+ new
@@ -2,23 +2,23 @@
require 'page-object/elements'
describe PageObject::Elements::Form do
describe "interface" do
let(:form_element) { double('form_element') }
-
+
context "for watir" do
it "should submit a form" do
form = PageObject::Elements::Form.new(form_element, :platform => :watir)
form_element.should_receive(:submit)
form.submit
end
end
-
+
context "for selenium" do
it "should submit a form" do
form = PageObject::Elements::Form.new(form_element, :platform => :selenium)
form_element.should_receive(:submit)
form.submit
- end
+ end
end
end
end
\ No newline at end of file