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-2.1.1 spec/timber/contexts/system_spec.rb
timber-2.1.0 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc6 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc5 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc4 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc3 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc2 spec/timber/contexts/system_spec.rb
timber-2.1.0.rc1 spec/timber/contexts/system_spec.rb
timber-2.0.24 spec/timber/contexts/system_spec.rb
timber-2.0.23 spec/timber/contexts/system_spec.rb
timber-2.0.22 spec/timber/contexts/system_spec.rb
timber-2.0.21 spec/timber/contexts/system_spec.rb
timber-2.0.20 spec/timber/contexts/system_spec.rb
timber-2.0.19 spec/timber/contexts/system_spec.rb
timber-2.0.17 spec/timber/contexts/system_spec.rb
timber-2.0.16 spec/timber/contexts/system_spec.rb
timber-2.0.15 spec/timber/contexts/system_spec.rb
timber-2.0.14 spec/timber/contexts/system_spec.rb
timber-2.0.12 spec/timber/contexts/system_spec.rb
timber-2.0.11 spec/timber/contexts/system_spec.rb