Sha256: 420e850e4e430ab957900975031b312ec954e258b153d2575787639d88413cfe

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

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

require 'rubygems' # Use the gems path only for the spec suite
require 'riak'
require 'rspec'
require 'fakeweb'
require 'stringio'

# Only the tests should really get away with this.
Riak.disable_list_keys_warnings = true

%w[integration_setup
   version_filter
   sometimes
   http_backend_implementation_examples
   search_corpus_setup
   unified_backend_examples
   mocks
   mock_server
   drb_mock_server
   test_server
   riak_test].each do |file|
  require File.join("support", file)
end

RSpec.configure do |config|
  #config.debug = true
  config.mock_with :rspec

  config.before(:all, :integration => true) do
    FakeWeb.allow_net_connect = true
  end

  config.after(:all, :integration => true) do
    FakeWeb.allow_net_connect = false
  end

  config.before(:each) do
    Riak::RObject.on_conflict_hooks.clear
    FakeWeb.clean_registry
  end

  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true

  if defined?(::Java)
    config.seed = Time.now.utc
  else
    config.order = :random
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riak-client-1.4.4.1 spec/spec_helper.rb
riak-client-1.4.4 spec/spec_helper.rb
riak-client-1.4.3 spec/spec_helper.rb
riak-client-1.4.2 spec/spec_helper.rb
riak-client-1.4.1 spec/spec_helper.rb
riak-client-1.4.0 spec/spec_helper.rb