mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
3e50313fdc
Since rspec-rails 3, the default installation creates two helper files: * `spec_helper.rb` * `rails_helper.rb` `spec_helper.rb` is intended as a way of running specs that do not require Rails, whereas `rails_helper.rb` loads Rails (as Discourse's current `spec_helper.rb` does). For more information: https://www.relishapp.com/rspec/rspec-rails/docs/upgrade#default-helper-files In this commit, I've simply replaced all instances of `spec_helper` with `rails_helper`, and renamed the original `spec_helper.rb`. This brings the Discourse project closer to the standard usage of RSpec in a Rails app. At present, every spec relies on loading Rails, but there are likely many that don't need to. In a future pull request, I hope to introduce a separate, minimal `spec_helper.rb` which can be used in tests which don't rely on Rails. |
||
---|---|---|
.. | ||
admin_controller_spec.rb | ||
api_controller_spec.rb | ||
backups_controller_spec.rb | ||
badges_controller_spec.rb | ||
color_schemes_controller_spec.rb | ||
dashboard_controller_spec.rb | ||
email_controller_spec.rb | ||
embeddable_hosts_controller_spec.rb | ||
embedding_controller_spec.rb | ||
emojis_controller_spec.rb | ||
flags_controller_spec.rb | ||
groups_controller_spec.rb | ||
impersonate_controller_spec.rb | ||
permalinks_controller_spec.rb | ||
plugins_controller_spec.rb | ||
reports_controller_spec.rb | ||
screened_emails_controller_spec.rb | ||
screened_ip_addresses_controller_spec.rb | ||
screened_urls_controller_spec.rb | ||
site_customizations_controller_spec.rb | ||
site_settings_controller_spec.rb | ||
site_texts_controller_spec.rb | ||
staff_action_logs_controller_spec.rb | ||
user_fields_controller_spec.rb | ||
users_controller_spec.rb | ||
versions_controller_spec.rb |