module ArticleFixtureGen::Data::Article::Default
Default-value builders for initialize parameters.
Constants
- DEFAULT_FAKER_OPTS
FIXME: We would prefer `fancy: true`. However, there is the problem
of https://github.com/ffaker/ffaker/issues/298 to contend with.
Public Class Methods
base_content(config, faker_opts = DEFAULT_FAKER_OPTS)
click to toggle source
# File lib/article_fixture_gen/data/article.rb, line 46 def self.base_content(config, faker_opts = DEFAULT_FAKER_OPTS) ArticleContent.new(config: config) do |sentence_count| FFaker::HTMLIpsum.p(sentence_count, faker_opts) end.to_s end