Skip to content

Commit 46a3f74

Browse files
committed
chore: add test on plugin
1 parent d503e88 commit 46a3f74

File tree

1 file changed

+17
-0
lines changed
  • packages/forest_admin_datasource_customizer/spec/lib/forest_admin_datasource_customizer/plugins

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
require 'spec_helper'
2+
3+
module ForestAdminDatasourceCustomizer
4+
module Plugins
5+
describe Plugin do
6+
let(:plugin) { described_class.new }
7+
8+
describe '#run' do
9+
it 'raises NotImplementedError by default' do
10+
expect do
11+
plugin.run(DatasourceCustomizer.new)
12+
end.to raise_error(NotImplementedError, /has not implemented method 'run'/)
13+
end
14+
end
15+
end
16+
end
17+
end

0 commit comments

Comments
 (0)