Sha256: 0772f47b3b234f050eb513d7e6f62d717a0e5a2090f2a6c152dd1d37c980f63e

Contents?: true

Size: 283 Bytes

Versions: 8

Compression:

Stored size: 283 Bytes

Contents

describe nil do

  it "accepts nil value" do
    [nil].must_be_written_to subject, :remarks
  end

  it "stringifies valid values" do
    subject.tap { |s| s.remarks = 'foobar' }.remarks.must_equal 'foobar'
    subject.tap { |s| s.remarks = 123 }.remarks.must_equal '123'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aixm-0.3.7 spec/macros/remarks.rb
aixm-0.3.6 spec/macros/remarks.rb
aixm-0.3.5 spec/macros/remarks.rb
aixm-0.3.4 spec/macros/remarks.rb
aixm-0.3.3 spec/macros/remarks.rb
aixm-0.3.2 spec/macros/remarks.rb
aixm-0.3.1 spec/macros/remarks.rb
aixm-0.3.0 spec/macros/remarks.rb