Created
July 28, 2014 13:25
-
-
Save mkarklins/dc6f1990f7507989f5ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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