Sha256: f9e4a46fb439aeb5008e7c76aed476a77326d6867bb69129a8a74ada7834aaaf

Contents?: true

Size: 361 Bytes

Versions: 35

Compression:

Stored size: 361 Bytes

Contents

require "spec_helper"

describe Timber::Events::Custom, :rails_23 => true do
  describe ".to_hash" do
    it "should coerce type into an atom" do
      custom_context = described_class.new(:type => "my type", :message => "hello", :data => {:key => "value"})
      hash = custom_context.to_hash()
      expect(hash.keys.first).to eq(:"my type")
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
timber-2.0.2 spec/timber/events/custom_spec.rb
timber-2.0.1 spec/timber/events/custom_spec.rb
timber-2.0.0 spec/timber/events/custom_spec.rb
timber-1.1.14 spec/timber/events/custom_spec.rb
timber-1.1.13 spec/timber/events/custom_spec.rb
timber-1.1.12 spec/timber/events/custom_spec.rb
timber-1.1.11 spec/timber/events/custom_spec.rb
timber-1.1.10 spec/timber/events/custom_spec.rb
timber-1.1.9 spec/timber/events/custom_spec.rb
timber-1.1.8 spec/timber/events/custom_spec.rb
timber-1.1.7 spec/timber/events/custom_spec.rb
timber-1.1.6 spec/timber/events/custom_spec.rb
timber-1.1.5 spec/timber/events/custom_spec.rb
timber-1.1.4 spec/timber/events/custom_spec.rb
timber-1.1.3 spec/timber/events/custom_spec.rb