File: spec_helper.rb

package info (click to toggle)
ruby-merb-param-protection 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 128 kB
  • sloc: ruby: 245; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "rubygems"

# Use current merb-core sources if running from a typical dev checkout.
lib = File.expand_path('../../../merb-core/lib', __FILE__)
$LOAD_PATH.unshift(lib) if File.directory?(lib)
require 'merb-core'

# The lib under test
require "merb-param-protection"

# Satisfies Autotest and anyone else not using the Rake tasks
require 'rspec'

# Additional files required for specs
require "controllers/param_protection"

Merb.start :environment => 'test'

RSpec::Runner.configure do |config|
  config.include Merb::Test::ControllerHelper
  config.include Merb::Test::RequestHelper
end