Sha256: 450957cef98254038ef77d667b274140655161f30c1ff6b2c2da4c54a55d1f67

Contents?: true

Size: 304 Bytes

Versions: 18

Compression:

Stored size: 304 Bytes

Contents

require "spec_helper"

describe Timber::Contexts::Runtime, :rails_23 => true do
  describe ".as_json" do
    it "should coerce vm_pid into an string" do
      custom_context = described_class.new(:vm_pid => 1)
      json = custom_context.as_json()
      expect(json[:vm_pid]).to eq("1")
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
timber-2.6.2 spec/timber/contexts/runtime_spec.rb
timber-2.6.1 spec/timber/contexts/runtime_spec.rb
timber-2.6.0 spec/timber/contexts/runtime_spec.rb
timber-2.6.0.pre.beta2 spec/timber/contexts/runtime_spec.rb
timber-2.6.0.pre.beta1 spec/timber/contexts/runtime_spec.rb
timber-2.5.1 spec/timber/contexts/runtime_spec.rb
timber-2.5.0 spec/timber/contexts/runtime_spec.rb
timber-2.4.0 spec/timber/contexts/runtime_spec.rb
timber-2.3.4 spec/timber/contexts/runtime_spec.rb
timber-2.3.3 spec/timber/contexts/runtime_spec.rb
timber-2.3.2 spec/timber/contexts/runtime_spec.rb
timber-2.3.1 spec/timber/contexts/runtime_spec.rb
timber-2.3.0 spec/timber/contexts/runtime_spec.rb
timber-2.2.3 spec/timber/contexts/runtime_spec.rb
timber-2.2.2 spec/timber/contexts/runtime_spec.rb
timber-2.2.1 spec/timber/contexts/runtime_spec.rb
timber-2.2.0 spec/timber/contexts/runtime_spec.rb
timber-2.1.10 spec/timber/contexts/runtime_spec.rb