Sha256: 073069133ae4f2f3f65a84aa8cee076a0cfb3de5fac5e00f003b127788bbcf00
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
require 'contest' require 'jsmin' require 'rack/test' require 'yaml' require 'mocha' require File.expand_path('../app/app.rb', __FILE__) class UnitTest < Test::Unit::TestCase include Rack::Test::Methods def app Main end def d puts "-"*80 puts "#{last_response.status}" y last_response.original_headers puts "-"*80 puts "" puts last_response.body.gsub(/^/m, ' ') puts "" end def body last_response.body.strip end def r(*a) File.join app.root, *a end def assert_includes(haystack, needle) assert haystack.include?(needle), "Expected #{haystack.inspect} to include #{needle.inspect}." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.6 | test/test_helper.rb |
sinatra-assetpack-0.0.5 | test/test_helper.rb |