@@ -137,7 +137,7 @@ def form_config
137
137
class ExamplePage < Matestack ::Ui ::Page
138
138
139
139
def response
140
- matestack_form form_config , :include do
140
+ matestack_form form_config do
141
141
custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ]
142
142
custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 }
143
143
button "Submit me!"
@@ -166,7 +166,7 @@ def form_config
166
166
it "can be initialized with value" do
167
167
class ExamplePage < Matestack ::Ui ::Page
168
168
def response
169
- matestack_form form_config , :include do
169
+ matestack_form form_config do
170
170
custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ] , init : "Array Option 1"
171
171
custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 } , init : 1
172
172
button "Submit me!"
@@ -206,7 +206,7 @@ def prepare
206
206
end
207
207
208
208
def response
209
- matestack_form form_config , :include do
209
+ matestack_form form_config do
210
210
form_input id : "description" , key : :description , type : :text
211
211
# TODO: Provide better Enum Options API
212
212
custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
@@ -250,7 +250,7 @@ def prepare
250
250
end
251
251
252
252
def response
253
- matestack_form form_config , :include do
253
+ matestack_form form_config do
254
254
form_input id : "description" , key : :description , type : :text
255
255
# TODO: Provide better Enum Options API
256
256
custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
@@ -294,7 +294,7 @@ def prepare
294
294
end
295
295
296
296
def response
297
- matestack_form form_config , :include do
297
+ matestack_form form_config do
298
298
# TODO: Provide better Enum Options API
299
299
custom_form_select_test id : "status" , key : :status , options : TestModel . statuses , init : TestModel . statuses [ @test_model . status ]
300
300
button "Submit me!"
@@ -320,7 +320,7 @@ def form_config
320
320
it "can have a class" do
321
321
class ExamplePage < Matestack ::Ui ::Page
322
322
def response
323
- matestack_form form_config , :include do
323
+ matestack_form form_config do
324
324
custom_form_select_test id : "my-array-test-dropdown" , key : :array_input , options : [ "Array Option 1" , "Array Option 2" ] , class : "form-control"
325
325
custom_form_select_test id : "my-hash-test-dropdown" , key : :hash_input , options : { "Hash Option 1" : 1 , "Hash Option 2" : 2 } , class : "form-control"
326
326
button "Submit me!"
0 commit comments