File: spec_helper.rb

package info (click to toggle)
ruby-dirty-memoize 0.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: ruby: 246; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$:.unshift(File.expand_path(File.dirname(__FILE__)+"/../lib"))
begin
  require 'simplecov'
  SimpleCov.start do
    add_filter "/spec/"
    add_group "Libraries", "lib"
  end
rescue LoadError
end
require 'rspec'
require 'dirty-memoize.rb'


class String
  def deindent
    gsub /^[ \t]*/, ''
  end
end