1 min readOct 11, 2020
How about this?
let!(:ip_record) do
create(:ip_record) do |r|
# /spec/fixtures/foo.txt
r.attachments.attach(fixture_file_upload('foo.txt'))
end
end
How about this?
let!(:ip_record) do
create(:ip_record) do |r|
# /spec/fixtures/foo.txt
r.attachments.attach(fixture_file_upload('foo.txt'))
end
end
advocate of score voting and approval voting. software engineer.