#215 テスト・ケース追加
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FactoryBot.define do
|
||||
factory :wiki_page do
|
||||
title { "TestPage" }
|
||||
association :created_user, factory: :user
|
||||
association :updated_user, factory: :user
|
||||
end
|
||||
end
|
||||
@@ -39,6 +39,10 @@ rescue ActiveRecord::PendingMigrationError => e
|
||||
abort e.to_s.strip
|
||||
end
|
||||
RSpec.configure do |config|
|
||||
config.before do
|
||||
I18n.locale = :en
|
||||
end
|
||||
|
||||
config.include TestRecords
|
||||
|
||||
# FactoryBot の create / create_list を使へるやぅにする
|
||||
|
||||
Reference in New Issue
Block a user