mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Make url unique in paper factory
This commit is contained in:
parent
9ae58e3a8d
commit
80a67d094d
1 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@ require_relative '../factory_helper'
|
|||
FactoryGirl.define do
|
||||
factory :paper do
|
||||
name { Faker::Lorem.sentence }
|
||||
url { Faker::Internet.url("ris.example.org") }
|
||||
sequence(:url) { |n| Faker::Internet.url("ris.example.org", "/paper-#{n}.html") }
|
||||
sequence(:reference) { |n| FactoryHelper.reference(n) }
|
||||
body "leipzig"
|
||||
published_at "2015-07-20 21:16:53"
|
||||
|
|
Loading…
Reference in a new issue