Sha256: df5ab69a990622ace52aa9e1e9a5086c309060a40248a937904ff8da1fee2f95
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 Bytes
Contents
require 'spec_helper' RSpec.describe Appdash::Event::Log do let(:time) { Time.utc(2001,2,3,4,5,6) } before { allow(Time).to receive(:now).and_return(time) } subject { described_class.new "Hi" } it "should init" do expect(subject.schema).to eq("log") expect(subject.attrs).to eq(msg: "Hi", time: time) end it "should annotate" do expect(atoh(subject.to_a)).to eq( "Msg" => "Hi", "Time" => "2001-02-03T04:05:06.000000+00:00", "_schema:log" => "", ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appdash-0.6.3 | spec/appdash/event/log_spec.rb |
appdash-0.6.2 | spec/appdash/event/log_spec.rb |
appdash-0.6.1 | spec/appdash/event/log_spec.rb |