ensl.org/spec/support/mixins/controllers.rb

8 lines
113 B
Ruby
Raw Permalink Normal View History

module Controllers
module JsonHelpers
def json
@json ||= JSON.parse(response.body)
end
end
end