Skip to content

Commit 84f8b24

Browse files
committed
fixed specs by removing old form calling syntax
1 parent a8f65e1 commit 84f8b24

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

spec/test/vue_js/form/async_request_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
before :all do
1010
class BasePage < Matestack::Ui::Page
1111
def response
12-
matestack_form form_config, :include do
12+
matestack_form form_config do
1313
form_input id: "my-test-input", key: :foo, type: :text
1414
button text: "Submit me!"
1515
end

spec/test/vue_js/form/async_transition_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module Example::Pages
5757
class BasePage < Matestack::Ui::Page
5858
def form_partial(number)
5959
h2 "This is Page #{number}"
60-
matestack_form form_config, :include do
60+
matestack_form form_config do
6161
form_input id: "my-test-input-on-page-#{number}", key: :foo, type: :text
6262
button "Submit me!"
6363
end

spec/test/vue_js/form/select/custom_select_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)