File: test_mimic_rails_before.rb

package info (click to toggle)
ruby-oj 3.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: ansic: 19,402; ruby: 11,451; makefile: 17
file content (21 lines) | stat: -rwxr-xr-x 360 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby
# encoding: UTF-8

$: << File.join(File.dirname(__FILE__), '..')

require 'helper'

Oj.mimic_JSON
begin
  require 'rails/all'
rescue LoadError => e
  puts "Rails are not in the gemfile, skipping tests"
  Process.exit
end

require 'isolated/shared'

$rails_monkey = true

class MimicRailsBefore < SharedMimicRailsTest
end # MimicRailsBefore