spec/spec_helper.rb in redis_ring-0.0.2 vs spec/spec_helper.rb in redis_ring-0.1.0
- old
+ new
@@ -1,7 +1,26 @@
-$:.push File.expand_path("../lib", __FILE__)
+$:.push File.expand_path("../../lib", __FILE__)
+require 'rspec'
+require 'mocha'
+
+require 'simplecov'
+SimpleCov.start
+
require 'redis_ring'
+
+def require_fake(name)
+ require File.expand_path("../fakes/fake_#{name}", __FILE__)
+end
+
+require_fake 'master_rpc'
+require_fake 'slave_rpc'
+require_fake 'process_manager'
+require_fake 'zookeeper_connection'
+require_fake 'node_provider'
+require_fake 'http_client'
+
+require File.expand_path('../cluster_builder', __FILE__)
RSpec.configure do |c|
c.color_enabled = true
c.mock_with :mocha
end