mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
e7cf4579a8
Previously people were not consistent about mocking which left internals in a fragile state when running subfolder specs. This introduces a simple helper `set_subfolder` which you can use to set the subfolder for the spec. It takes care of proper configuration of subfolder and teardown. ``` # usage set_subfolder "/my_amazing_subfolder" ``` You should no longer stub base_uri or global_settings |
||
---|---|---|
.. | ||
versioning | ||
concurrency.rb | ||
diagnostics_helper.rb | ||
discourse_event_helper.rb | ||
fake_logger.rb | ||
helpers.rb | ||
integration_helpers.rb | ||
match_html_matcher.rb | ||
rate_limit_matcher.rb | ||
shared_examples_for_stats_cacheable.rb | ||
site_settings_helpers.rb | ||
time_matcher.rb |