spec/datadog/notifications/config_spec.rb in datadog-notifications-0.3.0 vs spec/datadog/notifications/config_spec.rb in datadog-notifications-0.3.1
- old
+ new
@@ -10,6 +10,12 @@
client = subject.send(:connect!)
expect(client).to be_instance_of(Mock::Reporter)
expect(subject.tags).to eq(["custom:tag", "env:test", "host:test.host"])
end
+ it 'should instantiate plugins on use' do
+ subject.use Datadog::Notifications::Plugins::ActionController
+ expect(subject.plugins.size).to eq(1)
+ expect(subject.plugins.first).to be_instance_of(Datadog::Notifications::Plugins::ActionController)
+ end
+
end