Sha256: 0928c79afd100397921a97755b48231bc61645c9429b79a2da4fd30ec077fb89
Contents?: true
Size: 913 Bytes
Versions: 7
Compression:
Stored size: 913 Bytes
Contents
# -*- coding: utf-8 -*- $:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..')).untaint ENV['RACK_ENV'] = "test" require 'tdiary/environment' if ENV['COVERAGE'] = 'simplecov' require 'simplecov' require 'coveralls' SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start do add_filter '/spec/' add_filter '/test/' add_filter '/vendor/' end end require 'tdiary' RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end class DummyTDiary def conf conf = DummyConf.new conf.data_path = TDiary.root + "/tmp/" conf end def ignore_parser_cache false end end class DummyConf attr_accessor :data_path def cache_path TDiary.root + "/tmp/cache" end def options {} end def style "wiki" end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End: # vim: ts=3
Version data entries
7 entries across 7 versions & 1 rubygems