Sha256: 7bcb0bab1557e5d755c2d83e379cbc286911e17646b748236a023e554f0edbd5

Contents?: true

Size: 284 Bytes

Versions: 69

Compression:

Stored size: 284 Bytes

Contents

require "spec_helper"

describe Timber::Contexts::User, :rails_23 => true do
  describe ".as_json" do
    it "should coerce id into a string" do
      user_context = described_class.new(:id => 1)
      json = user_context.as_json()
      expect(json[:id]).to eq("1")
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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