spec/spec_helper.rb in fakeredis-0.7.0 vs spec/spec_helper.rb in fakeredis-0.8.0

- old
+ new

@@ -1,32 +1,18 @@ -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) -$LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' + +$LOAD_PATH.unshift(File.join(__dir__, '..', 'lib')) +$LOAD_PATH.unshift(File.join(__dir__, '..')) +Dir['spec/support/**/*.rb'].each { |f| require f } + require 'fakeredis' require "fakeredis/rspec" -require "support/shared_examples/sortable" -require "support/shared_examples/bitwise_operation" - - RSpec.configure do |config| # Enable memory adapter config.before(:each) { FakeRedis.enable } - # 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? FakeRedis.enabled? end