File: spec_helper.rb

package info (click to toggle)
cucumber 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,584 kB
  • sloc: ruby: 11,799; python: 28; makefile: 8; tcl: 3
file content (18 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ENV['CUCUMBER_COLORS']=nil
$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__))

# For Travis....
if defined? Encoding
  Encoding.default_external = 'utf-8'
  Encoding.default_internal = 'utf-8'
end

require 'cucumber'
$KCODE='u' unless Cucumber::RUBY_1_9

RSpec.configure do |c|
  c.before do
    ::Term::ANSIColor.coloring = true
  end
end