-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Diego Plentz
committed
Feb 8, 2012
1 parent
a2d85a4
commit 8547a0d
Showing
4 changed files
with
45 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,67 @@ | ||
JRuby 1.6.4(1.9 mode) doesn't work the same way then MRI 1.9.2p290 in these tests. Tried to isolate as much as possible each one. | ||
JRuby 1.6.6(1.9 mode) doesn't work the same way then MRI 1.9.3p0 in these tests. Tried to isolate as much as possible each one. | ||
|
||
*** | ||
### Ruby MRI 1.9.2p290 | ||
### Ruby MRI 1.9.3p0 | ||
|
||
```` | ||
~/Projects/opensource/jruby_report (master) $ rspec spec | ||
No DRb server is running. Running in local process instead ... | ||
F... | ||
MultiJson::Engines::Yajl | ||
..... | ||
Failures: | ||
1) charpoint should generate the same charpoint in both runtimes | ||
Failure/Error: MultiJson.encode({:message => "á"}).should == "{\"message\":\"á\"}" | ||
expected: "{\"message\":\"á\"}" | ||
got: "{\"message\":\"\\u00e1\"}" (using ==) | ||
# ./spec/models/charpoints_spec.rb:9:in `block (2 levels) in <top (required)>' | ||
Finished in 0.02677 seconds | ||
4 examples, 1 failure | ||
Failed examples: | ||
rspec ./spec/models/charpoints_spec.rb:8 # charpoint should generate the same charpoint in both runtimes | ||
Finished in 0.01431 seconds | ||
5 examples, 0 failures | ||
```` | ||
|
||
*** | ||
### JRuby 1.6.4(1.9 mode) | ||
### JRuby 1.6.6(1.9 mode) | ||
|
||
```` | ||
~/Projects/opensource/jruby_report (master) $ jruby --1.9 -S rspec spec/models/foo_spec.rb | ||
^C~/Projects/opensource/jruby_report (master) $ jruby --1.9 -S rspec spec | ||
~/Projects/opensource/jruby_report (master) $ jruby --1.9 -S rspec spec | ||
No DRb server is running. Running in local process instead ... | ||
JRuby limited openssl loaded. http://jruby.org/openssl | ||
gem install jruby-openssl for full support. | ||
FF.F | ||
MultiJson::Engines::JsonGem | ||
F.FFF | ||
Failures: | ||
1) charpoint should generate the same charpoint in both runtimes | ||
Failure/Error: MultiJson.encode({:message => "á"}).should == "{\"message\":\"á\"}" | ||
expected: "{\"message\":\"á\"}" | ||
got: "{\"message\":\"\\ufffd\"}" (using ==) | ||
got: "{\"message\":\"\\u00e1\"}" (using ==) | ||
# ./spec/models/charpoints_spec.rb:9:in `(root)' | ||
# org/jruby/RubyBasicObject.java:1717:in `instance_eval' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
2) Foo should do the right interpolation for error messages | ||
Failure/Error: lambda{I18n.t("errors.messages.record_invalid", :errors => foo.errors.full_messages)}.should_not raise_error | ||
expected no Exception, got #<Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT> | ||
# ./spec/models/foo_spec.rb:9:in `(root)' | ||
# org/jruby/RubyBasicObject.java:1717:in `instance_eval' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
2) MultiJson.engine should decode json even with special chars using a json string directly | ||
Failure/Error: MultiJson.decode("{\"message\":\"á\"}")['message'].should eq "á" | ||
expected: "á" | ||
got: "\u00C3\u00A1" | ||
(compared using ==) | ||
# ./spec/models/json_spec.rb:33:in `(root)' | ||
3) jruby json should decode json even with special chars using to_json | ||
3) MultiJson.engine should decode json even with special chars using to_json | ||
Failure/Error: MultiJson.decode({:message => "á"}.to_json)['message'].should eq "á" | ||
expected "á" | ||
got "\xC3\xA1" | ||
expected: "á" | ||
got: "\u00C3\u00A1" | ||
(compared using ==) | ||
# ./spec/models/json_spec.rb:14:in `(root)' | ||
# org/jruby/RubyBasicObject.java:1717:in `instance_eval' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
# org/jruby/RubyArray.java:2344:in `collect' | ||
# ./spec/models/json_spec.rb:37:in `(root)' | ||
4) MultiJson.engine should decode json even with special chars using to_json | ||
Failure/Error: MultiJson.encode({a:"á"}).should match /á/ | ||
expected "{\"a\":\"\\u00e1\"}" to match /á/ | ||
# ./spec/models/json_spec.rb:41:in `(root)' | ||
Finished in 0.475 seconds | ||
4 examples, 3 failures | ||
Finished in 0.203 seconds | ||
5 examples, 4 failures | ||
Failed examples: | ||
rspec ./spec/models/charpoints_spec.rb:8 # charpoint should generate the same charpoint in both runtimes | ||
rspec ./spec/models/foo_spec.rb:6 # Foo should do the right interpolation for error messages | ||
rspec ./spec/models/json_spec.rb:13 # jruby json should decode json even with special chars using to_json | ||
rspec ./spec/models/json_spec.rb:32 # MultiJson.engine should decode json even with special chars using a json string directly | ||
rspec ./spec/models/json_spec.rb:36 # MultiJson.engine should decode json even with special chars using to_json | ||
rspec ./spec/models/json_spec.rb:40 # MultiJson.engine should decode json even with special chars using to_json | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters