spec/spec_helper.rb in ripple-0.6.1 vs spec/spec_helper.rb in ripple-0.7.0
- old
+ new
@@ -11,22 +11,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'riak','lib'))
require 'rubygems' # Use the gems path only for the spec suite
require 'ripple'
-require 'spec'
-require 'spec/autorun'
-require 'fakeweb'
+require 'rspec/autorun'
Dir[File.join(File.dirname(__FILE__), "support", "*.rb")].each {|f| require f }
-$server = MockServer.new
-at_exit { $server.stop }
-
-Spec::Runner.configure do |config|
- config.before(:each) do
- FakeWeb.clean_registry
- end
+Rspec.configure do |config|
+ config.mock_with :rspec
end