mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove unnecessary rails_helper requiring (#26364)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
require "rails/generators"
|
||||
require "generators/site_setting_move_to_groups_migration/site_setting_move_to_groups_migration_generator"
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
require "rails/generators"
|
||||
require "generators/site_setting_rename_migration/site_setting_rename_migration_generator"
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
describe Jobs::CleanUpTags do
|
||||
subject(:job) { described_class.new }
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe Jobs::UpdatePostUploadsSecureStatus do
|
||||
fab!(:post)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe Jobs::SyncAclsForUploads do
|
||||
let(:upload1) { Fabricate(:upload) }
|
||||
let(:upload2) { Fabricate(:upload) }
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe FormTemplateYamlValidator, type: :validator do
|
||||
subject(:validator) { described_class.new }
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe BadgeGrouping, type: :model do
|
||||
it { is_expected.to validate_length_of(:name).is_at_most(100) }
|
||||
it { is_expected.to validate_length_of(:description).is_at_most(500) }
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe FormTemplate, type: :model do
|
||||
it "can't have duplicate names" do
|
||||
Fabricate(:form_template, name: "Bug Report", template: "- type: input\n id: name")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe Sitemap do
|
||||
describe ".regenerate_sitemaps" do
|
||||
fab!(:topic)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe SitemapController do
|
||||
describe "before_action :check_sitemap_enabled" do
|
||||
it "returns a 404 if sitemap is disabled" do
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe PostBookmarkable do
|
||||
subject(:registered_bookmarkable) { RegisteredBookmarkable.new(PostBookmarkable) }
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe TopicBookmarkable do
|
||||
subject(:registered_bookmarkable) { RegisteredBookmarkable.new(TopicBookmarkable) }
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe "list/list.erb" do
|
||||
fab!(:category)
|
||||
fab!(:topic)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rails_helper"
|
||||
require "ostruct"
|
||||
|
||||
RSpec.describe "topics/show.html.erb" do
|
||||
|
||||
Reference in New Issue
Block a user