spec/spec_helper.rb in timely-0.5.0 vs spec/spec_helper.rb in timely-0.6.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper.rb"` to ensure that it is only
# loaded once.
#
@@ -19,10 +21,10 @@
DB_FILE = 'tmp/test_db'
FileUtils.mkdir_p File.dirname(DB_FILE)
FileUtils.rm_f DB_FILE
-ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => DB_FILE
+ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: DB_FILE
load('spec/schema.rb')
RSpec.configure do |config|
config.run_all_when_everything_filtered = true