Revision b5eca9b3
Added by Michael Moll almost 6 years ago
test/unit/rabl_test.rb | ||
---|---|---|
rendered = Rabl.render(@media,
|
||
'api/v2/test/one',
|
||
:format => :json,
|
||
:view_path => File.expand_path('../../../test/static_fixtures/views', __FILE__))
|
||
:view_path => File.expand_path('../../test/static_fixtures/views', __dir__))
|
||
loaded = JSON.load(rendered)
|
||
assert_equal Hash, loaded.class
|
||
assert_equal @media.name, loaded['name']
|
Also available in: Unified diff
Fixes #23962 - Fix Style/ExpandPathArguments cop