Skip to content

Commit b359747

Browse files
committed
remove extra mock plugin definition
1 parent 57471b1 commit b359747

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

spec/ldclient_plugins_spec.rb

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,6 @@
33

44
module LaunchDarkly
55
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-
end
18-
19-
def get_hooks(environment_metadata)
20-
@hooks
21-
end
22-
23-
def register(client, environment_metadata)
24-
@register_callback.call(client, environment_metadata) if @register_callback
25-
end
26-
end
27-
286
context "plugin configuration" do
297
it "can register a plugin on the config" do
308
plugin = MockPlugin.new("test-plugin")

0 commit comments

Comments
 (0)