spec/unit/tables/formotion_screen_spec.rb in ProMotion-1.0.4 vs spec/unit/tables/formotion_screen_spec.rb in ProMotion-1.1.0.rc1
- old
+ new
@@ -11,6 +11,12 @@
it "should set default title on new instances" do
@screen.title.should == "Formotion Test"
end
+ it "should fire the on_submit method when form is submitted" do
+ @screen.form.submit
+ @screen.submitted_form.should.not.be.nil
+ @screen.submitted_form.render.should.be.kind_of(Hash)
+ end
+
end