Sha256: 6d2b22b37cc830cda60ca56db24f4a26292f657d5bb2fac40d6b52b67bce6375

Contents?: true

Size: 294 Bytes

Versions: 43

Compression:

Stored size: 294 Bytes

Contents

require "spec_helper"

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
timber-1.1.5 spec/timber/contexts/system_spec.rb
timber-1.1.4 spec/timber/contexts/system_spec.rb
timber-1.1.3 spec/timber/contexts/system_spec.rb