Sha256: 7cfda35f0a539e6d481dbc765f4e44a6f73a00e66d7cf5ed44837a65ab1c2e67
Contents?: true
Size: 929 Bytes
Versions: 1
Compression:
Stored size: 929 Bytes
Contents
require 'rubygems' require 'test/unit' require 'rack/test' require 'rr' gem 'crack', '>= 0.1.4' require 'crack/json' gem 'djsun-context', '>= 0.5.6' require 'context' gem 'jeremymcanally-pending', '>= 0.1' require 'pending' base = File.dirname(__FILE__) Dir.glob(base + '/lib/*.rb' ).each { |f| require f } Dir.glob(base + '/test_cases/*.rb').each { |f| require f } Dir.glob(base + '/assertions/*.rb').each { |f| require f } Dir.glob(base + '/shared/*.rb' ).each { |f| require f } require File.dirname(__FILE__) + '/../../config/config' Config.environment = 'test' class Test::Unit::TestCase include RR::Adapters::TestUnit end # If you use `rake test` the database will automatically get dropped. # But if you are running inside TextMate, it is handy to automatically drop the # database here: if ENV["TM_APP_PATH"] puts "TextMate environment detected. Dropping test database..." Config.drop_database end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra_resource-0.1.0 | examples/datacatalog/test/helpers/test_helper.rb |