mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05: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. |
||
---|---|---|
.. | ||
about_stats_spec.rb | ||
automatic_group_membership_spec.rb | ||
bulk_invite_spec.rb | ||
clean_up_digest_keys.rb | ||
clean_up_exports_spec.rb | ||
clean_up_uploads_spec.rb | ||
close_topic_spec.rb | ||
crawl_topic_link_spec.rb | ||
create_missing_avatars_spec.rb | ||
dashboard_stats_spec.rb | ||
enqueue_digest_emails_spec.rb | ||
export_csv_file_spec.rb | ||
feature_topic_users_spec.rb | ||
invite_email_spec.rb | ||
jobs_base_spec.rb | ||
jobs_spec.rb | ||
notify_mailing_list_subscribers_spec.rb | ||
notify_moved_posts_spec.rb | ||
pending_flags_reminder_spec.rb | ||
pending_queued_posts_reminder_spec.rb | ||
pending_users_reminder_spec.rb | ||
periodical_updates_spec.rb | ||
poll_feed_spec.rb | ||
poll_mailbox_spec.rb | ||
process_post_spec.rb | ||
send_system_message_spec.rb | ||
test_email_spec.rb | ||
tl3_promotions_spec.rb | ||
update_gravatar_spec.rb | ||
user_email_spec.rb |