feat: タグ名を別管理に変更(#215) (#219)

Merge branch 'main' into feature/215

#215 ニコニコ同期テスト

#215 テスト・ケース追加

#215 テスト・ケース追加

#215 テスト・ケース追加

#215 テスト・ケース追加

Merge remote-tracking branch 'origin/main' into feature/215

Merge branch 'main' into feature/215

#215

#215

Merge remote-tracking branch 'origin/main' into feature/215

#215

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #219
This commit was merged in pull request #219.
This commit is contained in:
2026-01-15 12:40:41 +09:00
parent 74141f2a84
commit fa2030f9a5
34 changed files with 1268 additions and 119 deletions
+16 -3
View File
@@ -8,6 +8,10 @@ abort("The Rails environment is running in production mode!") if Rails.env.produ
# that will avoid rails generators crashing because migrations haven't been run yet
# return unless Rails.env.test?
require 'rspec/rails'
Dir[Rails.root.join('spec/support/**/*.rb')].each do |f|
require f
end
# Add additional requires below this line. Rails is not loaded until this point!
# Requires supporting ruby files with custom matchers and macros, etc, in
@@ -34,11 +38,20 @@ begin
rescue ActiveRecord::PendingMigrationError => e
abort e.to_s.strip
end
Dir[Rails.root.join('spec/support/**/*.rb')].each do |f|
require f
end
RSpec.configure do |config|
config.before do
I18n.locale = :en
end
config.include TestRecords
config.include RakeTaskHelper
# FactoryBot の create / create_list を使へるやぅにする
config.include FactoryBot::Syntax::Methods
# request spec で helper 使へるやぅにする
config.include AuthHelper, type: :request
config.include JsonHelper, type: :request
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_paths = [