Skip to content

Instantly share code, notes, and snippets.

@semperos
Created April 20, 2012 17:21
Show Gist options
  • Save semperos/2430409 to your computer and use it in GitHub Desktop.
Save semperos/2430409 to your computer and use it in GitHub Desktop.
Sinatra RSpec modular app
# 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