aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases/test_helper_test.rb
diff options
context:
space:
mode:
authorRyunosuke Sato <tricknotes.rs@gmail.com>2016-06-25 21:50:15 +0900
committerRyunosuke Sato <tricknotes.rs@gmail.com>2016-06-25 21:50:16 +0900
commitabbf00e5830141d3eda451e10bf12c3dccf668ec (patch)
treed863da20504ec422287749b57c862f217483d95f /activejob/test/cases/test_helper_test.rb
parent6da5f6b451e27d59c2492e504350d0fc70c37e3a (diff)
downloadrails-abbf00e5830141d3eda451e10bf12c3dccf668ec.tar.gz
rails-abbf00e5830141d3eda451e10bf12c3dccf668ec.tar.bz2
rails-abbf00e5830141d3eda451e10bf12c3dccf668ec.zip
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"} ```
Diffstat (limited to 'activejob/test/cases/test_helper_test.rb')
0 files changed, 0 insertions, 0 deletions