started using rspec 2.x

This commit is contained in:
2010-10-15 00:52:34 +01:00
parent 64b607e608
commit f2b0bd7f47
3 changed files with 9 additions and 12 deletions

2
.rspec Normal file
View File

@@ -0,0 +1,2 @@
--format documentation
--color

View File

@@ -1,2 +0,0 @@
--format specdoc
--color

View File

@@ -1,15 +1,12 @@
# require "rubygems"
# require File.dirname(__FILE__) + "/../lib/redistat"
# add project-relative load paths
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
# require stuff
require 'redistat'
require 'spec'
require 'spec/autorun'
Spec::Runner.configure do |config|
end
require 'rspec'
require 'rspec/autorun'
# use the test Redistat instance
Redistat.connect({:port => 8379, :db => 15})
Redistat.flush
Redistat.flush