Sha256: 49d566207be394c74c7497851816a8dbc8ee9bc58680fe0aaec323059c67e42e

Contents?: true

Size: 694 Bytes

Versions: 28

Compression:

Stored size: 694 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'rapnd'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.mock_with(:mocha)  
  config.before(:suite) do
    `redis-server #{File.dirname(__FILE__)}/redis-test.conf`
  end
  config.after(:suite) do
    processes = `ps -A -o pid,command | grep [r]edis-test`.split("\n")
    pids = processes.map { |process| process.split(" ")[0] }
    pids.each { |pid| Process.kill("KILL", pid.to_i) }
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
rapnd-0.1.7 spec/spec_helper.rb
rapnd-0.1.6 spec/spec_helper.rb
rapnd-0.1.5 spec/spec_helper.rb
rapnd-0.1.4 spec/spec_helper.rb
rapnd-0.1.3 spec/spec_helper.rb
rapnd-0.1.2 spec/spec_helper.rb
rapnd-0.1.1 spec/spec_helper.rb
rapnd-0.1.0 spec/spec_helper.rb