spec/spec_helper.rb in fozzie-0.0.27 vs spec/spec_helper.rb in fozzie-1.0.0
- old
+ new
@@ -1,19 +1,29 @@
ENV['RACK_ENV'] ||= 'test'
-root = File.expand_path('../', File.dirname(__FILE__))
-lib = File.expand_path('lib', root)
+# Basic path registers
+root = File.expand_path('../', File.dirname(__FILE__))
+lib = File.expand_path('lib', root)
$:.unshift(root, lib)
-require 'simplecov'
-SimpleCov.start
+# Shared Examples
+Dir[File.expand_path('spec/shared_examples/*.rb')].each {|r| require r }
-RSpec.configure do |config|
- config.mock_with :mocha
-end
-
require 'fozzie'
+module Fozzie
+ class Adapter::TestAdapter
+ def register(*params); end
+ def delimeter; ""; end
+ def safe_separator; ""; end
+ end
+end
+
Fozzie.configure do |config|
- config.host = '127.0.0.1'
- config.port = 8809
+ config.host = '127.0.0.1'
+ config.port = 8809
+ config.adapter = "TestAdapter"
+end
+
+RSpec.configure do |config|
+ config.order = :random
end
\ No newline at end of file