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
+11
View File
@@ -0,0 +1,11 @@
module AuthHelper
def sign_in_as(user)
allow_any_instance_of(ApplicationController)
.to receive(:current_user).and_return(user)
end
def sign_out
allow_any_instance_of(ApplicationController)
.to receive(:current_user).and_return(nil)
end
end
+5
View File
@@ -0,0 +1,5 @@
module JsonHelper
def json
JSON.parse(response.body)
end
end
+21
View File
@@ -0,0 +1,21 @@
require "rake"
module RakeTaskHelper
# Railsの rake task を一度だけロードする
def load_rails_tasks!
return if defined?(@rails_tasks_loaded) && @rails_tasks_loaded
@rails_tasks_loaded = true
Rake.application = Rake::Application.new
Rails.application.load_tasks
end
def run_rake_task(full_name)
load_rails_tasks!
task = Rake::Task[full_name] # ここは rake[...] じゃなくて良い
task.reenable
task.invoke
end
end