Module: Ey::Core::TestHelpers::AlertHelpers
- Included in:
- Ey::Core::TestHelpers
- Defined in:
- lib/ey-core/test_helpers/alert_helpers.rb
Instance Method Summary collapse
Instance Method Details
#create_legacy_alert(client, attributes = {}) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ey-core/test_helpers/alert_helpers.rb', line 5 def create_legacy_alert(client, attributes={}) attributes = Cistern::Hash.stringify_keys(attributes) if server = attributes.delete("server") attributes["server"] = client.url_for("/servers/#{server.id}") end client.data[:legacy_alerts][attributes["id"]] = attributes end |