File: console

package info (click to toggle)
ruby-jsonb-accessor 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: ruby: 371; makefile: 10; sh: 5
file content (16 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "jsonb_accessor"
require "rspec"
require File.expand_path("../spec/spec_helper.rb", __dir__)

dbconfig = YAML.safe_load(ERB.new(File.read(File.join("db", "config.yml"))).result, aliases: true)
ActiveRecord::Base.establish_connection(dbconfig["test"])

# rubocop:disable Lint/UselessAssignment
x = Product.new
# rubocop:enable Lint/UselessAssignment

Pry.start