Sha256: 2620d4c7157329a3d41137d924e05a4314b13d4844f56444bd3ad0405fa5d87c
Contents?: true
Size: 928 Bytes
Versions: 4
Compression:
Stored size: 928 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 attr_accessor :conf def initialize @conf = DummyConf.new @conf.data_path = TDiary.root + "/tmp/" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tdiary-4.2.1 | vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/spec/spec_helper.rb |
tdiary-4.2.0 | spec/spec_helper.rb |
tdiary-4.1.3 | spec/spec_helper.rb |
tdiary-4.1.2 | spec/spec_helper.rb |