Created
April 24, 2009 15:24
-
-
Save phinze/101147 to your computer and use it in GitHub Desktop.
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
# CODE ------------------ | |
# app/helpers/really_long_helper.rb | |
class ReallyLongHelper | |
def fooA | |
'hello america' | |
end | |
# ... | |
def fooZZ | |
'hello zanzabar' | |
end | |
end | |
# SPECS ----------------- | |
# spec/helpers/really_long_helper_spec.rb | |
describe ReallyLongHelper | |
it 'says hello to america' # { ... } | |
# ... | |
it 'says hello to zanzabar' # { ... } | |
end | |
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
# CODE ------------------ | |
# app/helpers/really_long/base.rb | |
class ReallyLong::Base | |
include ReallyLong::WesternHemisphere | |
include ReallyLong::EasternHemisphere | |
end | |
# app/helpers/really_long/western_hemisphere.rb | |
module ReallyLong::WesternHemisphere | |
# ... | |
end | |
# app/helpers/really_long/eastern_hemisphere.rb | |
module ReallyLong::EasternHemisphere | |
# ... | |
end | |
# SPECS ----------------- | |
# ????? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment