Sha256: 5e79402110771fd973abb0d59fda73de65c45cdadb8ee1eb641fa6d588419964

Contents?: true

Size: 1.07 KB

Versions: 14

Compression:

Stored size: 1.07 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'

# 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
   unified_backend_examples
   mocks
   mock_server
   drb_mock_server
   test_server].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

14 entries across 4 versions & 1 rubygems

Version Path
riak-client-1.0.5 spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.1/spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/spec/spec_helper.rb
riak-client-1.0.3 spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.3 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/spec/spec_helper.rb
riak-client-1.0.2 spec/spec_helper.rb
riak-client-1.0.2 pkg/riak-client-1.0.0/spec/spec_helper.rb
riak-client-1.0.0 spec/spec_helper.rb