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-mikec54088-0.5.5 spec/spec_helper.rb
rapnd-mikec54088-0.5.4 spec/spec_helper.rb
rapnd-mikec54088-0.5.3 spec/spec_helper.rb
rapnd-mikec54088-0.5.2 spec/spec_helper.rb
rapnd-mikec54088-0.5.1 spec/spec_helper.rb
rapnd-mikec54088-0.5.0 spec/spec_helper.rb
rapnd-0.5.0 spec/spec_helper.rb
rapnd-0.4.1 spec/spec_helper.rb
rapnd-0.4.0 spec/spec_helper.rb
rapnd-0.3.1 spec/spec_helper.rb
rapnd-0.3.0 spec/spec_helper.rb
rapnd-0.2.5 spec/spec_helper.rb
rapnd-0.2.4 spec/spec_helper.rb
rapnd-0.2.3 spec/spec_helper.rb
rapnd-0.2.2 spec/spec_helper.rb
rapnd-0.2.1 spec/spec_helper.rb
rapnd-0.2.0 spec/spec_helper.rb
rapnd-0.1.10 spec/spec_helper.rb
rapnd-0.1.9 spec/spec_helper.rb
rapnd-0.1.8 spec/spec_helper.rb