File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def initialize(dashboard_ids: [])
17
17
18
18
def perform
19
19
raise InvalidParameterError , "dashboard_ids array of integers expected" unless dashboard_ids . is_a? ( Array )
20
- raise InvalidParameterError , "dashboard_ids array must contin Integer only values" unless dashboard_ids . all? { |item | item . is_a? ( Integer ) }
20
+ raise InvalidParameterError , "dashboard_ids array must contain Integer only values" unless dashboard_ids . all? { |item | item . is_a? ( Integer ) }
21
21
22
22
logger . info ( "Attempting to delete dashboards with id: #{ dashboard_ids . join ( ', ' ) } " )
23
23
response
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def list_attributes
91
91
def validate_constructor_args
92
92
raise InvalidParameterError , "title_contains must be a String type" unless title_contains . is_a? ( String )
93
93
raise InvalidParameterError , "tags_equal must be an Array type" unless tags_equal . is_a? ( Array )
94
- raise InvalidParameterError , "tags_equal array must contin string only values" unless tags_equal . all? { |item | item . is_a? ( String ) }
94
+ raise InvalidParameterError , "tags_equal array must contain string only values" unless tags_equal . all? { |item | item . is_a? ( String ) }
95
95
raise InvalidParameterError , "ids_not_in must be an Array type" unless ids_not_in . is_a? ( Array )
96
96
end
97
97
end
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def initialize(dataset_ids: [])
17
17
18
18
def perform
19
19
raise InvalidParameterError , "dataset_ids array of integers expected" unless dataset_ids . is_a? ( Array )
20
- raise InvalidParameterError , "dataset_ids array must contin Integer only values" unless dataset_ids . all? { |item | item . is_a? ( Integer ) }
20
+ raise InvalidParameterError , "dataset_ids array must contain Integer only values" unless dataset_ids . all? { |item | item . is_a? ( Integer ) }
21
21
22
22
logger . info ( "Attempting to delete datasets with id: #{ dataset_ids . join ( ', ' ) } " )
23
23
response
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def validate_constructor_args
33
33
raise InvalidParameterError , "object_type_id is not a known value" unless ObjectType . list . include? ( object_type_id )
34
34
raise InvalidParameterError , "object_id integer is required" unless object_id . present? && object_id . is_a? ( Integer )
35
35
raise InvalidParameterError , "tags array is required" unless tags . present? && tags . is_a? ( Array )
36
- raise InvalidParameterError , "tags array must contin string only values" unless tags . all? { |item | item . is_a? ( String ) }
36
+ raise InvalidParameterError , "tags array must contain string only values" unless tags . all? { |item | item . is_a? ( String ) }
37
37
end
38
38
39
39
private
Original file line number Diff line number Diff line change 20
20
let ( :dashboard_ids ) { [ 1 , 'string' ] }
21
21
22
22
it 'raises an error' do
23
- expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "dashboard_ids array must contin Integer only values" )
23
+ expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "dashboard_ids array must contain Integer only values" )
24
24
end
25
25
end
26
26
Original file line number Diff line number Diff line change 20
20
let ( :dataset_ids ) { [ 1 , 'string' ] }
21
21
22
22
it 'raises an error' do
23
- expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "dataset_ids array must contin Integer only values" )
23
+ expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "dataset_ids array must contain Integer only values" )
24
24
end
25
25
end
26
26
Original file line number Diff line number Diff line change 88
88
let ( :tags ) { [ 1 , 2 ] }
89
89
90
90
it 'raises an error' do
91
- expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "tags array must contin string only values" )
91
+ expect { subject . perform } . to raise_error ( Superset ::Request ::InvalidParameterError , "tags array must contain string only values" )
92
92
end
93
93
end
94
94
end
You can’t perform that action at this time.
0 commit comments