@@ -137,7 +137,7 @@ def form_config
137137 class ExamplePage < Matestack ::Ui ::Page
138138
139139 def response
140- matestack_form form_config , :include do
140+ matestack_form form_config do
141141 custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ]
142142 custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 }
143143 button "Submit me!"
@@ -166,7 +166,7 @@ def form_config
166166 it "can be initialized with value" do
167167 class ExamplePage < Matestack ::Ui ::Page
168168 def response
169- matestack_form form_config , :include do
169+ matestack_form form_config do
170170 custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ] , init : "Array Option 1"
171171 custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 } , init : 1
172172 button "Submit me!"
@@ -206,7 +206,7 @@ def prepare
206206 end
207207
208208 def response
209- matestack_form form_config , :include do
209+ matestack_form form_config do
210210 form_input id : "description" , key : :description , type : :text
211211 # TODO: Provide better Enum Options API
212212 custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
@@ -250,7 +250,7 @@ def prepare
250250 end
251251
252252 def response
253- matestack_form form_config , :include do
253+ matestack_form form_config do
254254 form_input id : "description" , key : :description , type : :text
255255 # TODO: Provide better Enum Options API
256256 custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
@@ -294,7 +294,7 @@ def prepare
294294 end
295295
296296 def response
297- matestack_form form_config , :include do
297+ matestack_form form_config do
298298 # TODO: Provide better Enum Options API
299299 custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
300300 button "Submit me!"
@@ -320,7 +320,7 @@ def form_config
320320 it "can have a class" do
321321 class ExamplePage < Matestack ::Ui ::Page
322322 def response
323- matestack_form form_config , :include do
323+ matestack_form form_config do
324324 custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ] , class : "form-control"
325325 custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 } , class : "form-control"
326326 button "Submit me!"
0 commit comments