Sha256: 4f50c15eebc2f8c42b0bfc616ab229c9250bd09f49b6336761ecd2a40afd2212
Contents?: true
Size: 545 Bytes
Versions: 15
Compression:
Stored size: 545 Bytes
Contents
class StubLogDrain < OpenStruct def attributes # I foresee hard-coding values like this # being hard to debug in the future, # so sorry if you're here and cursing me, but # I can't think of a better way to fake this. { 'drain_username' => drain_username, 'drain_host' => drain_host, 'drain_port' => drain_port, 'url' => url } end end Fabricator(:log_drain, from: :stub_log_drain) do id { sequence(:log_drain_id) } account after_create { |drain| drain.account.log_drains << drain } end
Version data entries
15 entries across 15 versions & 1 rubygems