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.24 spec/timber/events/custom_spec.rb
timber-2.0.23 spec/timber/events/custom_spec.rb
timber-2.0.22 spec/timber/events/custom_spec.rb
timber-2.0.21 spec/timber/events/custom_spec.rb
timber-2.0.20 spec/timber/events/custom_spec.rb
timber-2.0.19 spec/timber/events/custom_spec.rb
timber-2.0.17 spec/timber/events/custom_spec.rb
timber-2.0.16 spec/timber/events/custom_spec.rb
timber-2.0.15 spec/timber/events/custom_spec.rb
timber-2.0.14 spec/timber/events/custom_spec.rb
timber-2.0.12 spec/timber/events/custom_spec.rb
timber-2.0.11 spec/timber/events/custom_spec.rb
timber-2.0.10 spec/timber/events/custom_spec.rb
timber-2.0.9 spec/timber/events/custom_spec.rb
timber-2.0.8 spec/timber/events/custom_spec.rb
timber-2.0.7 spec/timber/events/custom_spec.rb
timber-2.0.6 spec/timber/events/custom_spec.rb
timber-2.0.5 spec/timber/events/custom_spec.rb
timber-2.0.4 spec/timber/events/custom_spec.rb
timber-2.0.3 spec/timber/events/custom_spec.rb