Skip to content

Commit 2a3f926

Browse files
committed
update unit tests to exclude collection view pages in the convert method
1 parent 9bd325d commit 2a3f926

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/blocks_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
describe "#convert" do
1818
it "should convert the block to a different type and return the new block." do
1919
@block = $Block_spec_page.get_block($Block_spec_convert_id)
20-
filtered_classes = Classes.select { |cls| ![:CollectionView, :CollectionViewRow].include?(cls)}
20+
filtered_classes = Classes.select { |cls| ![:CollectionView, :CollectionViewRow, :CollectionViewPage].include?(cls)}
2121

2222
number_of_classes = filtered_classes.length
2323
class_for_conversion = filtered_classes[rand(0...number_of_classes)]

spec/spec_variables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module Helpers
4646
$Block_spec_add_page = $Client.get_page($Block_spec_add_url)
4747

4848
$Block_spec_title_id = "5e5f1ec2-8af4-429e-bcb2-bac6d6f49798"
49-
$Block_spec_convert_id = "a770e01f-8b58-4f29-91be-1e3f4173c2b0"
49+
$Block_spec_convert_id = "60526527-da05-4b58-99f0-6e1d18d60dd4"
5050
$Block_spec_duplicate_id_one = "b240e279-df40-4d36-b3b1-dbc419abbcd8"
5151
$Block_spec_duplicate_id_target = "b61f8da8-7bf4-4149-891a-5a043d83fc46"
5252
$Block_spec_move_id_target = "45cd1ef1-7130-427e-99e2-f49ba558222a"

0 commit comments

Comments
 (0)