Sha256: e20bafde5ff369d4fe41f0062bc62edc4659a6234347dff25a23e3e62f1bbbab

Contents?: true

Size: 294 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
timber-2.1.9 spec/timber/contexts/system_spec.rb
timber-2.1.8 spec/timber/contexts/system_spec.rb
timber-2.1.7 spec/timber/contexts/system_spec.rb
timber-2.1.6 spec/timber/contexts/system_spec.rb
timber-2.1.5 spec/timber/contexts/system_spec.rb
timber-2.1.4 spec/timber/contexts/system_spec.rb
timber-2.1.3 spec/timber/contexts/system_spec.rb
timber-2.1.2 spec/timber/contexts/system_spec.rb