File: test_helper.rb

package info (click to toggle)
ruby-rabl 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,280 kB
  • sloc: ruby: 6,732; javascript: 102; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Load Silence Functionality
require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb")

silence_warnings do
  PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
  require 'bundler'
  Bundler.require
  require File.expand_path(File.dirname(__FILE__) + "/../app.rb")
  silence_stream(STDOUT) { ActiveRecord::Migrator.up('db/migrate') } # Load up test migrations
end

# Load Riot Test Environment
require File.expand_path(File.dirname(__FILE__) + "/../../../test/integration/test_init.rb")

class Riot::Situation
  def app
    @app || SinatraTest
  end
end