Skip to content

Instantly share code, notes, and snippets.

@mkarklins
Created July 28, 2014 13:25
Show Gist options
  • Save mkarklins/dc6f1990f7507989f5ce to your computer and use it in GitHub Desktop.
Save mkarklins/dc6f1990f7507989f5ce to your computer and use it in GitHub Desktop.
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'http://rubygems.org'
gem "rails", "2.3.18"
gem "activerecord-oracle_enhanced-adapter", "1.4.1"
gem 'ruby-oci8'
gem 'pry'
gem 'iconv'
gem 'ruby-plsql'
GEMFILE
system 'bundle'
end
require 'bundler'
Bundler.setup(:default)
require 'active_record'
require 'active_support'
require 'minitest/autorun'
require 'activerecord-oracle_enhanced-adapter'
require 'pry'
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