Sha256: 37a78906538f48c39a1f828fb75a65bd5f3c33bde6d42c8584bdf07685329c7d

Contents?: true

Size: 269 Bytes

Versions: 30

Compression:

Stored size: 269 Bytes

Contents

require 'spec_helper'

describe RestModel::Serialization::String do
  it "converts value to string" do
    subject.class.serialize(:something).should == "something"
  end

  it "returns nil when value is nil" do
    subject.class.serialize(nil).should be_nil
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rest_model-0.3.1 spec/unit/serialization/string_spec.rb
rest_model-0.3.0 spec/unit/serialization/string_spec.rb
rest_model-0.2.3 spec/unit/serialization/string_spec.rb
rest_model-0.2.1 spec/unit/serialization/string_spec.rb
rest_model-0.2.0 spec/unit/serialization/string_spec.rb
rest_model-0.1.24 spec/unit/serialization/string_spec.rb
rest_model-0.1.23 spec/unit/serialization/string_spec.rb
rest_model-0.1.22 spec/unit/serialization/string_spec.rb
rest_model-0.1.21 spec/unit/serialization/string_spec.rb
rest_model-0.1.20 spec/unit/serialization/string_spec.rb
rest_model-0.1.19 spec/unit/serialization/string_spec.rb
rest_model-0.1.18 spec/unit/serialization/string_spec.rb
rest_model-0.1.17 spec/unit/serialization/string_spec.rb
rest_model-0.1.16 spec/unit/serialization/string_spec.rb
rest_model-0.1.15 spec/unit/serialization/string_spec.rb
rest_model-0.1.14 spec/unit/serialization/string_spec.rb
rest_model-0.1.13 spec/unit/serialization/string_spec.rb
rest_model-0.1.12 spec/unit/serialization/string_spec.rb
rest_model-0.1.11 spec/unit/serialization/string_spec.rb
rest_model-0.1.10 spec/unit/serialization/string_spec.rb