Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created May 23, 2021 12:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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