diff options
author | Florian Frank <flori@ping.de> | 2010-09-22 22:21:02 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2010-09-23 01:16:01 +0200 |
commit | e3fe104e7d5ec184aac36128aed2d217cb655dfc (patch) | |
tree | 3a63dc0152effdb990defcd5c935e38209649a8f /tests | |
parent | 2c0f8d2c9b15a33b8d10ffcb1959aef54d320b57 (diff) | |
download | ruby-json-e3fe104e7d5ec184aac36128aed2d217cb655dfc.tar.gz |
started to build jruby extension with Rakefile
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_json_addition.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_generate.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_rails.rb | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_json_addition.rb b/tests/test_json_addition.rb index 2c89e39..34f0a71 100755 --- a/tests/test_json_addition.rb +++ b/tests/test_json_addition.rb @@ -7,7 +7,7 @@ when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end -require 'json/add/core' +load 'json/add/core.rb' require 'date' class TC_JSONAddition < Test::Unit::TestCase diff --git a/tests/test_json_generate.rb b/tests/test_json_generate.rb index 69c967e..5380a06 100755 --- a/tests/test_json_generate.rb +++ b/tests/test_json_generate.rb @@ -84,6 +84,8 @@ EOT assert_raise(GeneratorError) { fast_generate(666) } end + + def test_states json = generate({1=>2}, nil) assert_equal('{"1":2}', json) diff --git a/tests/test_json_rails.rb b/tests/test_json_rails.rb index 7c3d51d..daa053c 100755 --- a/tests/test_json_rails.rb +++ b/tests/test_json_rails.rb @@ -7,7 +7,7 @@ when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end -require 'json/add/rails' +load 'json/add/rails.rb' require 'date' class TC_JSONRails < Test::Unit::TestCase |