Sha256: 1af40249779944cb8da93b53c63317859bc280ec189be73311877ae5581e5d61
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
require "rubygems" require 'lib/jsont.rb' require 'json' describe "JsonT with arrays" do it "should transform" do JsonT.new( JSON.parse('{ "self": "<table><tr>{$}</tr></table>","self[*]": "<td>{$}</td>" }') ).transform( JSON.parse('[1,2]') ).should == '<table><tr><td>1</td><td>2</td></tr></table>' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsont-0.1.3 | spec/array.rb |