spec/spec_helper.rb in db_clustering-0.1.0 vs spec/spec_helper.rb in db_clustering-0.1.1
- old
+ new
@@ -1,6 +1,7 @@
require 'simplecov'
+require 'support/dataset_helper'
module SimpleCov::Configuration
def clean_filters
@filters = []
end
@@ -16,14 +17,18 @@
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
-require 'clustering'
+require 'db_clustering'
+require 'byebug'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
RSpec.configure do |config|
-
+ config.expect_with :rspec do |c|
+ # only allow new expect syntax for specs
+ c.syntax = :expect
+ end
end