Skip to content

Instantly share code, notes, and snippets.

View yahonda's full-sized avatar

Yasuo Honda yahonda

View GitHub Profile
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
$ bin/test test/cases/associations/has_one_associations_test.rb test/cases/view_test.rb --seed 48032 -n "/^(?:ViewWithoutPrimaryKeyTest#(?:test_attributes)|HasOneAssociationsTest#(?:test_destroyed_by_association_set_in_child_destroy_callback_on_parent_destroy|test_destroyed_by_association_set_in_child_destroy_callback_on_replace))$/" --verbose
Using sqlite3
Run options: --seed 48032 -n "/^(?:ViewWithoutPrimaryKeyTest#(?:test_attributes)|HasOneAssociationsTest#(?:test_destroyed_by_association_set_in_child_destroy_callback_on_parent_destroy|test_destroyed_by_association_set_in_child_destroy_callback_on_replace))$/" --verbose
# Running:
ViewWithoutPrimaryKeyTest#test_attributes = 0.04 s = .
HasOneAssociationsTest#test_destroyed_by_association_set_in_child_destroy_callback_on_replace = 0.13 s = F
HasOneAssociationsTest#test_destroyed_by_association_set_in_child_destroy_callback_on_parent_destroy = 0.01 s = F
@yahonda
yahonda / gist:7898ec69325dcb70c5e6efdc7f74d174
Created August 18, 2017 15:06
shuffle_fixtures - 5654 runs, 15575 assertions, 13 failures, 0 errors, 2 skips
$ ARCONN=postgresql bin/test
Using postgresql
Run options: --seed 22385
# Running:
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
@yahonda
yahonda / gist:5d6512c7f6d0df2f5c4759747238dc75
Created August 18, 2017 15:07
reverse_fixtures - 5654 runs, 15563 assertions, 24 failures, 0 errors, 2 skips
$ ARCONN=postgresql bin/test
Using postgresql
Run options: --seed 37347
# Running:
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.............................................................................................................................................................................................................................................................................
@yahonda
yahonda / gist:d4936bd065db9aa421f3ea95b5473a2e
Last active September 28, 2017 10:43
Create Oracle enhanced adapter development environment on macOS
0. Environment
macOS High Sierra
Xcode
Ruby 2.4.2 installed by rbenv using Homebrew
Docker
1. Download "Oracle Instant Client"
http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html?ssSourceSiteId=otnjp
* Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install rbenv
Open a new terminal
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
login as: vagrant
vagrant@vagrant's password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
@yahonda
yahonda / rep1626_rails51.rb
Created January 16, 2018 02:32
rep1626_rails51.rb
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do