spec/spec_helper.rb in fozzie-1.0.3 vs spec/spec_helper.rb in fozzie-1.1.0
- old
+ new
@@ -1,29 +1,32 @@
-ENV['RACK_ENV'] ||= 'test'
-
-# Basic path registers
-root = File.expand_path('../', File.dirname(__FILE__))
-lib = File.expand_path('lib', root)
-$:.unshift(root, lib)
-
-# Shared Examples
-Dir[File.expand_path('spec/shared_examples/*.rb')].each {|r| require r }
-
-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.adapter = "TestAdapter"
-end
-
-RSpec.configure do |config|
- config.order = :random
-end
\ No newline at end of file
+ENV['RACK_ENV'] ||= 'test'
+
+# Basic path registers
+root = File.expand_path('../', File.dirname(__FILE__))
+lib = File.expand_path('lib', root)
+$:.unshift(root, lib)
+
+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.adapter = "TestAdapter"
+end
+
+RSpec.configure do |config|
+ config.order = :random
+ config.expect_with(:rspec) { |c| c.syntax = :should }
+ config.mock_with(:rspec) { |c| c.syntax = :should }
+ config.raise_errors_for_deprecations!
+end
+
+# Shared Examples
+Dir[File.expand_path('spec/shared_examples/*.rb')].each {|r| require r }