We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When one generates a sub-app, a special test_helper.rb /spec_helperfile should be created which overrides theapp` method used by RackTest.
test_helper.rb /
file should be created which overrides the
require 'spec_helper' def app ## # You can handle all padrino applications using instead: # Padrino.application API.tap { |app| } end
The text was updated successfully, but these errors were encountered:
Hm that's an interesting idea. Though this would lead to alot of helpers eventually no? I've been getting around this by doing something like https://github.com/padrino/padrino-framework/blob/master/padrino-gen/lib/padrino-gen/generators/components/tests/riot.rb#L31. This allows me to specify in my test something like:
describe "MyController" do before do app MySubApp.tap { |a| } end # ... end
Does this seem like a good solution? If so I can push this to the other generated test/spec helpers.
Sorry, something went wrong.
53e2c5d
achiurizo
No branches or pull requests
When one generates a sub-app, a special
test_helper.rb /
spec_helperfile should be created which overrides the
app` method used by RackTest.The text was updated successfully, but these errors were encountered: