Rakefile in inventory_refresh-0.3.6 vs Rakefile in inventory_refresh-1.0.0

- old
+ new

@@ -10,18 +10,18 @@ with_connection("template1") { |conn| conn.execute("CREATE DATABASE #{test_database_name}") } end task :db_load_schema do require "active_record" - with_connection(test_database_name) { load File.join(__dir__, %w{spec schema.rb}) } + with_connection(test_database_name) { load File.join(__dir__, %w[spec schema.rb]) } end desc "Setup test database" task :setup => [:db_drop, :db_create, :db_load_schema] def connection_spec require 'yaml' - @connection_spec ||= YAML.load_file(File.join(__dir__, %w(config database.yml))) + @connection_spec ||= YAML.load_file(File.join(__dir__, %w[config database.yml])) end def test_database_name connection_spec["test"]["database"] end