Sha256: b3e2b96e4ec32c80f866e9ea790321df0d7796660787325f05f96c248de13e6c
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'simplecov' require 'rspec/its' require 'webmock/rspec' if ENV['TRAVIS'] require 'coveralls' SimpleCov.formatter = Coveralls::SimpleCov::Formatter end SimpleCov.start do add_filter '/spec/' add_filter 'helper' end # See http://betterspecs.org/ RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end def count_files_in_dir(absolute_dir_path, files_pattern = '*') Dir.glob(File.join(absolute_dir_path, files_pattern)).count end # Parse a file containing raw headers and return the associated Hash # @return [ Hash ] def parse_headers_file(filepath) Typhoeus::Response::Header.new(File.read(filepath)) end require 'cms_scanner' require 'shared_examples' SPECS = Pathname.new(__FILE__).dirname.to_s CACHE = File.join(SPECS, 'cache') FIXTURES = File.join(SPECS, 'fixtures') FIXTURES_VIEWS = File.join(FIXTURES, 'views') APP_VIEWS = File.join(CMSScanner::APP_DIR, 'views')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cms_scanner-0.0.5 | spec/spec_helper.rb |
cms_scanner-0.0.4 | spec/spec_helper.rb |
cms_scanner-0.0.3 | spec/spec_helper.rb |
cms_scanner-0.0.2 | spec/spec_helper.rb |