This file contains hidden or 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
set nocompatible | |
set viminfo='20,\"500 " Keep a .viminfo file. | |
" When editing a file, always jump to the last cursor position | |
autocmd BufReadPost * | |
\ if ! exists("g:leave_my_cursor_position_alone") | | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | | |
\ exe "normal g'\"" | | |
\ endif | |
This file contains hidden or 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
require 'spec_helper' | |
describe Book do | |
it "has same join behavior for logically equivalent subqueries" do | |
author = Author.create | |
book = Book.create!(cost: 100, author: author) | |
2.times { Chapter.create!(book: book) } | |
sub_query1 = Book.arel_table[:author_id].in([author.id]) | |
sub_query2 = Book.arel_table[:author_id].in( |
NewerOlder