lib/schema_dev/rspec/db.rb in schema_dev-0.1.5 vs lib/schema_dev/rspec/db.rb in schema_dev-0.1.6

- old
+ new

@@ -5,22 +5,22 @@ module SchemaDev module Rspec module Db extend self - def setup(db = nil) - @db = db || GemfileSelector.infer_db + def setup(_db = nil) + @db = _db || GemfileSelector.infer_db set_logger connect RSpec.configure do |config| config.include Helpers config.filter_run_excluding :postgresql => :only unless Helpers.postgresql? config.filter_run_excluding :postgresql => :skip if Helpers.postgresql? config.filter_run_excluding :mysql => :only unless Helpers.mysql? config.filter_run_excluding :mysql => :skip if Helpers.mysql? config.filter_run_excluding :sqlite3 => :only unless Helpers.sqlite3? config.filter_run_excluding :sqlite3 => :skip if Helpers.sqlite3? - end + end unless _db end def tmproot @tmproot ||= Pathname.new('tmp').tap { |path| path.mkpath } end