Sha256: 118f52b5ec6ef545bc1d23c44470afa445af80d816f9aa08f96f9c6e97764811
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
#!/usr/bin/ruby # coding: utf-8 BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent.parent srcdir = basedir.parent strelkadir = srcdir + 'Strelka/lib' libdir = basedir + "lib" $LOAD_PATH.unshift( strelkadir.to_s ) unless $LOAD_PATH.include?( strelkadir.to_s ) $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s ) $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s ) } # SimpleCov test coverage reporting; enable this using the :coverage rake task if ENV['COVERAGE'] $stderr.puts "\n\n>>> Enabling coverage report.\n\n" require 'simplecov' SimpleCov.start do add_filter 'spec' add_group "Needing tests" do |file| file.covered_percent < 90 end end end require 'loggability' require 'loggability/spechelpers' require 'pathname' require 'rspec' require 'mongrel2' require 'mongrel2/testing' require 'strelka' require 'strelka/cms' ### RSpec helper functions. module Strelka::CMS::SpecHelpers end ### Mock with RSpec RSpec.configure do |c| c.mock_with( :rspec ) c.include( Loggability::SpecHelpers ) c.include( Mongrel2::SpecHelpers ) c.include( Strelka::CMS::SpecHelpers ) end # vim: set nosta noet ts=4 sw=4:
Version data entries
5 entries across 5 versions & 1 rubygems