Created
April 20, 2012 17:21
-
-
Save semperos/2430409 to your computer and use it in GitHub Desktop.
Sinatra RSpec modular app
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
# Spec File 1 | |
def app | |
FooApp | |
end | |
describe FooApp do | |
# for some reason, `app` resolves to the definition BarApp given in Spec File 2 below, | |
# instead of the above definition | |
... | |
end | |
# Spec File 2 | |
def app | |
BarApp | |
end | |
describe BarApp do | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment