Hide FactoryBot deprecation warning by changing static assignment

Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
This commit is contained in:
Sebastian Serth
2018-09-11 10:53:58 +02:00
parent ac31afbd2a
commit 1f12b39731
12 changed files with 217 additions and 217 deletions

View File

@@ -3,13 +3,13 @@ require 'seeds_helper'
module CodeOcean
FactoryBot.define do
factory :file, class: CodeOcean::File do
content ''
content { '' }
association :context, factory: :submission
association :file_type, factory: :dot_rb
hidden false
hidden { false }
name { SecureRandom.hex }
read_only false
role 'main_file'
read_only { false }
role { 'main_file' }
end
end
end