Sha256: a9edb69fd244caacdc5e30aa4d226b647980a9b56036bbe31aad82e9191116e0
Contents?: true
Size: 505 Bytes
Versions: 51
Compression:
Stored size: 505 Bytes
Contents
class Fixnum def greater_than?(other) self > other end def greater_than_or_equal_to?(other) self >= other end end module TestHelpers def app Brief.testcase.server end def json @json ||= JSON.parse(last_response.body) end def env_for(*args) Rack::MockRequest.send(:env_for, *args) end def route_for(*args) env = env_for(*args) Brief::Server::Route.new(env, Brief.testcase) end def handler_for(*args) route_for(*args).send(:handler) end end
Version data entries
51 entries across 51 versions & 1 rubygems