Sha256: 5977891d14e0fb8d5814c4f29a3a5632300fa15e7af544df0a86bb336b547ba3

Contents?: true

Size: 292 Bytes

Versions: 69

Compression:

Stored size: 292 Bytes

Contents

require "spec_helper"

describe Timber::Contexts::Organization, :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.1.7 spec/timber/contexts/organization_spec.rb
timber-2.1.6 spec/timber/contexts/organization_spec.rb
timber-2.1.5 spec/timber/contexts/organization_spec.rb
timber-2.1.4 spec/timber/contexts/organization_spec.rb
timber-2.1.3 spec/timber/contexts/organization_spec.rb
timber-2.1.2 spec/timber/contexts/organization_spec.rb
timber-2.1.1 spec/timber/contexts/organization_spec.rb
timber-2.1.0 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc6 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc5 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc4 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc3 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc2 spec/timber/contexts/organization_spec.rb
timber-2.1.0.rc1 spec/timber/contexts/organization_spec.rb
timber-2.0.24 spec/timber/contexts/organization_spec.rb
timber-2.0.23 spec/timber/contexts/organization_spec.rb
timber-2.0.22 spec/timber/contexts/organization_spec.rb
timber-2.0.21 spec/timber/contexts/organization_spec.rb
timber-2.0.20 spec/timber/contexts/organization_spec.rb
timber-2.0.19 spec/timber/contexts/organization_spec.rb