spec/spec_helper.rb in fakeredis-0.4.3 vs spec/spec_helper.rb in fakeredis-0.5.0

- old
+ new

@@ -2,8 +2,27 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'fakeredis' require "fakeredis/rspec" +require "support/shared_examples/sortable" + +RSpec.configure do |config| + # replaces -b -fdoc --color in .rspec + config.color = true + config.default_formatter = "doc" + config.backtrace_exclusion_patterns = [] + + config.mock_with :rspec do |c| + # TODO: upgrade should syntax to expect syntax + c.syntax = [:should, :expect] + end + + config.expect_with :rspec do |c| + # TODO: upgrade should syntax to expect syntax + c.syntax = [:should, :expect] + end +end + def fakeredis? true end