Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created May 23, 2021 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-tc/bf739f3806e7ed672ac01fd7730edbd3 to your computer and use it in GitHub Desktop.
Save alpaca-tc/bf739f3806e7ed672ac01fd7730edbd3 to your computer and use it in GitHub Desktop.
rake db:seed が例外を吐かないことをテストする
# frozen_string_literal: true
RSpec.describe 'rake db:seed' do
it 'works fine' do
expect { load('db/seeds.rb') }.to_not raise_error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment