1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/json
Ryunosuke Sato abbf00e583 Define Pathname#as_json
When the Pathname object is converted as JSON,
it should be a string that means itself.

Expected:
```
>> Pathname.new('/path/to/somewhere.txt').as_json
"/path/to/somewhere.txt"
```

Actual:
```
>> Pathname.new('/path/to/somewhere.txt').as_json
{"path"=>"/path/to/somewhere.txt"}
```
2016-06-25 21:50:16 +09:00
..
decoding_test.rb Use correct timezone when parsing date in json 2016-01-22 09:25:28 +08:00
encoding_test.rb Fix behavior of JSON encoding for Exception 2016-04-09 23:49:43 +09:00
encoding_test_cases.rb Define Pathname#as_json 2016-06-25 21:50:16 +09:00