Skip to content

Instantly share code, notes, and snippets.

View yuthura's full-sized avatar

Yuthura yuthura

  • The Netherlands
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'
gem 'rails', '4.2.7'
@yuthura
yuthura / OrderByBug.java
Last active September 6, 2015 11:55
JUnit test to prove Bianca OrderBy bug
package com.github.yuthura.bianca;
import java.sql.*;
import org.junit.*;
import org.junit.rules.*;
import com.github.yuthura.bianca.test.*;
import static org.junit.Assert.*;
@yuthura
yuthura / join_through_bug.rb
Last active June 15, 2016 21:18
wrong table alias on join :through with includes on same table
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
# gem 'rails', '4.0.5' #, github: 'rails/rails'
gem 'rails', '4.2.0' #, github: 'rails/rails'
gem 'mysql2'
GEMFILE
system 'bundle install'
end