Sha256: 7f7146f4a41ac78c46c6c5a5a47d3960653a4c9bb59c2004934bb861831003f7

Contents?: true

Size: 295 Bytes

Versions: 18

Compression:

Stored size: 295 Bytes

Contents

require "spec_helper"

describe Timber::Contexts::System, :rails_23 => true do
  describe ".as_json" do
    it "should coerce pid into an integer" 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

18 entries across 18 versions & 1 rubygems

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