File: spec_helper.rb

package info (click to toggle)
ruby-merb-haml 1.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 260 kB
  • ctags: 28
  • sloc: ruby: 152; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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-haml"

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

# Shared spec files
require "controllers/haml"

Merb::Plugins.config[:haml] = { "autoclose" => ["foo"] }

Merb.start :environment => 'test'

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