Sha256: 1d8107decf2d382b42204e5d5596ba7c3eeede3e453f8a323f90b2e1c96d3567

Contents?: true

Size: 342 Bytes

Versions: 69

Compression:

Stored size: 342 Bytes

Contents

require "spec_helper"

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

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
timber-2.0.17 spec/timber/contexts/custom_spec.rb
timber-2.0.16 spec/timber/contexts/custom_spec.rb
timber-2.0.15 spec/timber/contexts/custom_spec.rb
timber-2.0.14 spec/timber/contexts/custom_spec.rb
timber-2.0.12 spec/timber/contexts/custom_spec.rb
timber-2.0.11 spec/timber/contexts/custom_spec.rb
timber-2.0.10 spec/timber/contexts/custom_spec.rb
timber-2.0.9 spec/timber/contexts/custom_spec.rb
timber-2.0.8 spec/timber/contexts/custom_spec.rb
timber-2.0.7 spec/timber/contexts/custom_spec.rb
timber-2.0.6 spec/timber/contexts/custom_spec.rb
timber-2.0.5 spec/timber/contexts/custom_spec.rb
timber-2.0.4 spec/timber/contexts/custom_spec.rb
timber-2.0.3 spec/timber/contexts/custom_spec.rb
timber-2.0.2 spec/timber/contexts/custom_spec.rb
timber-2.0.1 spec/timber/contexts/custom_spec.rb
timber-2.0.0 spec/timber/contexts/custom_spec.rb
timber-1.1.14 spec/timber/contexts/custom_spec.rb
timber-1.1.13 spec/timber/contexts/custom_spec.rb
timber-1.1.12 spec/timber/contexts/custom_spec.rb