discourse/spec/models
Andy Waite 3e50313fdc Prepare for separation of RSpec helper files
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.
2015-12-01 20:39:42 +00:00
..
about_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
admin_dashboard_data_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
api_key_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
application_request_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
backup_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
badge_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
badge_type.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
category_featured_topic_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
category_featured_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
category_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
category_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
color_scheme_color_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
color_scheme_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
digest_email_site_setting_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
digest_unsubscribe_key_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
directory_item_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
discourse_single_sign_on_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
draft_sequence_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
draft_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
email_log_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
email_token_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
embeddable_host_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
global_setting_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
group_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
incoming_link_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
incoming_links_report_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
invite_redeemer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
invite_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
locale_site_setting_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
notification_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
optimized_image_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
permalink_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
plugin_store_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_action_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_alert_observer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_analyzer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_detail_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_mover_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_reply_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_timing_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_upload_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
queued_post_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
quoted_post_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
report_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
rtl_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
s3_region_site_setting_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
screened_email_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
screened_ip_address_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
screened_url_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
search_observer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
site_customization_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
site_setting_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
site_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
stylesheet_cache_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
top_menu_item_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
top_topic_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_allowed_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_embed_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_featured_users_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_invite_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_link_click_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_link_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_participants_summary_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_posters_summary_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_status_update_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_tracking_state_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_view_item_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
trust_level3_requirements_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
twitter_user_info_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
upload_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_action_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_avatar_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_badge.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_email_observer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_history_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_open_id_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_profile_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_profile_view_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_search_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_stat_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_visit_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
username_validator_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00