0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ActiveSupport::MessageVerifier::InvalidSignatureエラー

Posted at

動画投稿機能を作った後にrspecを実行するとこのようなエラーが出た。

ActiveSupport::MessageVerifier::InvalidSignature:
       ActiveSupport::MessageVerifier::InvalidSignature

原因

開発の最初の方でとりあえず入れておいたFactorybotの動画ファイルを保存する欄が良くなかったようです。

qiita.rb
FactoryBot.define do
    factory :post do
        title        { "example post" }
        video_url    { "hoge_url" }
    end
end

解決法

とりあえず上のvideo_urlの欄を消すとエラーは治りました。
しかしこのままでは動画のテストができないので他の方法も探していこうと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?