Skip to content

Commit 3b99901

Browse files
committed
fix typo
1 parent 795d76c commit 3b99901

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/superset/chart/bulk_delete.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(chart_ids: [])
1616

1717
def perform
1818
raise InvalidParameterError, "chart_ids array of integers expected" unless chart_ids.is_a?(Array)
19-
raise InvalidParameterError, "chart_ids array must contin Integer only values" unless chart_ids.all? { |item| item.is_a?(Integer) }
19+
raise InvalidParameterError, "chart_ids array must contain Integer only values" unless chart_ids.all? { |item| item.is_a?(Integer) }
2020

2121
logger.info("Attempting to delete charts with id: #{chart_ids.join(', ')}")
2222
response

spec/superset/chart/bulk_delete_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
let(:chart_ids) { [1, 'string'] }
2121

2222
it 'raises an error' do
23-
expect { subject.perform }.to raise_error(Superset::Request::InvalidParameterError, "chart_ids array must contin Integer only values")
23+
expect { subject.perform }.to raise_error(Superset::Request::InvalidParameterError, "chart_ids array must contain Integer only values")
2424
end
2525
end
2626

0 commit comments

Comments
 (0)