We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57471b1 commit b359747Copy full SHA for b359747
spec/ldclient_plugins_spec.rb
@@ -3,28 +3,6 @@
3
4
module LaunchDarkly
5
describe "LDClient plugins tests" do
6
- class MockPlugin
7
- include Interfaces::Plugins::Plugin
8
-
9
- def initialize(name, hooks = [], register_callback = nil)
10
- @name = name
11
- @hooks = hooks
12
- @register_callback = register_callback
13
- end
14
15
- def metadata
16
- Interfaces::Plugins::PluginMetadata.new(@name)
17
18
19
- def get_hooks(environment_metadata)
20
- @hooks
21
22
23
- def register(client, environment_metadata)
24
- @register_callback.call(client, environment_metadata) if @register_callback
25
26
27
28
context "plugin configuration" do
29
it "can register a plugin on the config" do
30
plugin = MockPlugin.new("test-plugin")
0 commit comments