Skip to content

Instantly share code, notes, and snippets.

@mkarklins
Created July 28, 2014 13:27
Show Gist options
  • Save mkarklins/b99c67f3a8dc197c5fec to your computer and use it in GitHub Desktop.
Save mkarklins/b99c67f3a8dc197c5fec to your computer and use it in GitHub Desktop.
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'http://rubygems.org'
gem 'rails', '4.0.8'
gem 'activerecord-oracle_enhanced-adapter', '1.5.5'
gem 'ruby-oci8'
GEMFILE
system 'bundle'
end
require 'bundler'
Bundler.setup(:default)
require 'active_record'
require 'active_support'
require 'minitest/autorun'
require 'activerecord-oracle_enhanced-adapter'
ActiveRecord::Base.establish_connection(adapter: 'oracle_enhanced')
class BugTest < MiniTest::Unit::TestCase
def test_custom_create_method
assert_equal ActiveRecord::Base.methods.include?(:set_create_method), true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment