Sha256: a208e0fdcc0c1809925ccc299fb24dfda4d6255c6f0faa06464b1697969e03e8
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 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 begin require 'yaml' require 'riak/test_server' config = YAML.load_file("spec/support/test_server.yml") $test_server = Riak::TestServer.new(config.symbolize_keys) $test_server.prepare! $test_server.start at_exit { $test_server.cleanup } rescue => e warn "Can't run Riak::TestServer specs. Specify the location of your Riak installation in spec/support/test_server.yml. See Riak::TestServer docs for more info." warn e.inspect end Dir[File.join(File.dirname(__FILE__), "support", "*.rb")].sort.each {|f| require f } RSpec.configure do |config| config.debug = true config.mock_with :rspec 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seomoz-riak-client-1.0.0.pre | spec/spec_helper.rb |