@@ -119,7 +119,7 @@ def validate_format
119119 it "won't allow making stack's orchestration template orderable when already orderable" do
120120 record = FactoryBot . create ( :orchestration_stack_cloud_with_template )
121121 post :button , :params => { :id => record . id , :pressed => "make_ot_orderable" }
122- expect ( record . orchestration_template . orderable? ) . to be_truthy
122+ expect ( record . orchestration_template . supports? ( :order ) ) . to be_truthy
123123 expect ( response . status ) . to eq ( 200 )
124124 expect ( response ) . to render_template ( :partial => "layouts/_flash_msg" )
125125 expect ( assigns ( :flash_array ) . first [ :message ] ) . to include ( 'is already orderable' )
@@ -128,7 +128,7 @@ def validate_format
128128 it "makes stack's orchestration template orderable" do
129129 record = FactoryBot . create ( :orchestration_stack_cloud , :orchestration_template => non_orderable_template )
130130 post :button , :params => { :id => record . id , :pressed => "make_ot_orderable" }
131- expect ( record . orchestration_template . orderable? ) . to be_falsey
131+ expect ( record . orchestration_template . supports? ( :order ) ) . to be_falsey
132132 expect ( response . status ) . to eq ( 200 )
133133 expect ( response ) . to render_template ( :partial => "layouts/_flash_msg" )
134134 expect ( assigns ( :flash_array ) . first [ :message ] ) . to include ( 'is now orderable' )
@@ -139,7 +139,7 @@ def validate_format
139139 it "won't allow copying stack's orchestration template orderable when already orderable" do
140140 record = FactoryBot . create ( :orchestration_stack_cloud_with_template )
141141 post :button , :params => { :id => record . id , :pressed => "orchestration_template_copy" }
142- expect ( record . orchestration_template . orderable? ) . to be_truthy
142+ expect ( record . orchestration_template . supports? ( :order ) ) . to be_truthy
143143 expect ( response . status ) . to eq ( 200 )
144144 expect ( response ) . to render_template ( :partial => "layouts/_flash_msg" )
145145 expect ( assigns ( :flash_array ) . first [ :message ] ) . to include ( 'is already orderable' )
@@ -148,7 +148,7 @@ def validate_format
148148 it "renders orchestration template copying form" do
149149 record = FactoryBot . create ( :orchestration_stack_cloud , :orchestration_template => non_orderable_template )
150150 post :button , :params => { :id => record . id , :pressed => "orchestration_template_copy" }
151- expect ( record . orchestration_template . orderable? ) . to be_falsey
151+ expect ( record . orchestration_template . supports? ( :order ) ) . to be_falsey
152152 expect ( response . status ) . to eq ( 200 )
153153 expect ( response ) . to render_template ( :partial => "orchestration_stack/_copy_orchestration_template" )
154154 end
0 commit comments