require 'rubygems'
require 'spec'

spec_dir = File.dirname(__FILE__)
$: << File.expand_path("#{spec_dir}/../lib")

require 'flock'
require 'flock/mock_service'

$mock_service = Flock::MockService.new

Spec::Runner.configure do |config|
  config.mock_with :rr
  config.before do
    $mock_service.clear
  end
end

def new_flock_client
  Flock.new($mock_service, :graphs => { :schmaph => 1 })
end
