Sha256: 58f34cc5c68237fa9428675a6601a2d9b08a92d736df3633da2856a2ba635351
Contents?: true
Size: 783 Bytes
Versions: 4
Compression:
Stored size: 783 Bytes
Contents
require 'contest' require 'jsmin' require 'tilt' require 'haml' require 'sass' require 'stylus' require 'stylus/tilt' require 'rack/test' require 'yaml' require 'mocha/setup' ENV['RACK_ENV'] = 'test' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.2.6 | test/test_helper.rb |
sinatra-assetpack-0.2.5 | test/test_helper.rb |
sinatra-assetpack-0.2.4 | test/test_helper.rb |
sinatra-assetpack-0.2.3 | test/test_helper.rb |