Sha256: e6bd87b9dc47a990d83499805c1f0d23d8921ce5bb51f83ac933a71ae1945589
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../lib/sidekiq/cobweb_helper') require File.expand_path(File.dirname(__FILE__) + '/../lib/cobweb') require File.expand_path(File.dirname(__FILE__) + '/../spec/samples/sample_server') require File.expand_path(File.dirname(__FILE__) + '/../spec/http_stubs') require 'mock_redis' require 'thin' if ENV["TRAVIS_RUBY_VERSION"].nil? require 'coveralls' Coveralls.wear! # Sets up the environment as test so that exceptions are raised ENVIRONMENT = "test" APP_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') RSpec.configure do |config| if ENV["TRAVIS_RUBY_VERSION"] || ENV['CI'] config.filter_run_excluding :local_only => true end Thread.new do @thin ||= Thin::Server.start("0.0.0.0", 3532, SampleServer.app) end # WAIT FOR START TO COMPLETE sleep 1 config.before(:all) { # START THIN SERVER TO HOST THE SAMPLE SITE FOR CRAWLING } config.before(:each) { #redis_mock = double("redis") #redis_mock.stub(:new).and_return(@redis_mock_object) #redis_mock.flushdb } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cobweb-1.0.19 | spec/spec_helper.rb |
cobweb-1.0.18 | spec/spec_helper.rb |