Created
November 20, 2008 23:20
-
-
Save entp/27265 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
# fuck you for judging me! LOL | |
class << ActiveRecord::Base | |
def second(options = {}) | |
first(options.update(:offset => 1)) | |
end | |
def third(options = {}) | |
first(options.update(:offset => 2)) | |
end | |
end | |
describe "associations" do | |
before :all do | |
transaction do | |
@site = Site.make | |
@cat1 = Category.first | |
@cat2 = Category.second | |
@cat3 = Category.third |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment