Sha256: b4979bceef1ef61eb5cdb8eb75f331a5870d8706ce4345728ed0ff2c95e24c87
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'sinatra/test_helpers' require 'minitest/autorun' require 'rack/test' ENV['RACK_ENV'] = 'test' include Rack::Test::Methods require 'batsd-dash' require 'batsd-dash/app' class MiniTest::Spec after { mocha_teardown } def app Batsd::Dash::App end def json_response oid = last_response.object_id if oid != @last_response_id @last_response_id = oid @last_response_json_body = JSON.parse(last_response.body, symbolize_names: true) rescue nil end @last_response_json_body end end require 'mocha/setup'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
batsd-dash-0.5.0 | test/helper.rb |