Sha256: b60dfd4d3e33b2a1092fe3133312b6ab51df807f01ac29ebabbf7134a3525dd8
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riak-client-1.2.0 | spec/spec_helper.rb |
riak-client-1.1.1 | spec/spec_helper.rb |
riak-client-1.1.0 | spec/spec_helper.rb |