Sha256: e5fb0e6edda2708a6b5651e7db75c1f1b35bf1dfadc05389d6145ebabeece7d6

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 Bytes

Contents

require 'json'
describe Liner::Serializable do
  subject { Pizza.new 'thin', 'tomato' }
  describe :to_json do
    it "should render a json string" do
      subject.to_json.must_equal "{\"crust\":\"thin\",\"sauce\":\"tomato\"}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
liner-0.2.3 test/liner/serializable_test.rb
liner-0.2.2 test/liner/serializable_test.rb
liner-0.2.1 test/liner/serializable_test.rb
liner-0.2.0 test/liner/serializable_test.rb
liner-0.1.2 test/liner/serializable_test.rb