2011-03-30 20:31:39 -04:00
|
|
|
Bundler.setup
|
|
|
|
require 'machinist/active_record'
|
|
|
|
require 'sham'
|
|
|
|
require 'faker'
|
2011-04-18 11:28:19 -04:00
|
|
|
require 'ransack'
|
2011-03-30 20:31:39 -04:00
|
|
|
|
2013-12-10 04:52:46 -05:00
|
|
|
Dir[File.expand_path('../../spec/{helpers,support,blueprints}/*.rb', __FILE__)]
|
|
|
|
.each do |f|
|
2011-03-30 20:31:39 -04:00
|
|
|
require f
|
|
|
|
end
|
|
|
|
|
|
|
|
Sham.define do
|
|
|
|
name { Faker::Name.name }
|
|
|
|
title { Faker::Lorem.sentence }
|
|
|
|
body { Faker::Lorem.paragraph }
|
2013-12-10 04:52:46 -05:00
|
|
|
salary { |index| 30000 + (index * 1000) }
|
2021-01-04 05:57:58 -05:00
|
|
|
tag_name { Faker::Lorem.words(number: 3).join(' ') }
|
|
|
|
note { Faker::Lorem.words(number: 7).join(' ') }
|
|
|
|
only_admin { Faker::Lorem.words(number: 3).join(' ') }
|
|
|
|
only_search { Faker::Lorem.words(number: 3).join(' ') }
|
|
|
|
only_sort { Faker::Lorem.words(number: 3).join(' ') }
|
2016-07-23 22:13:56 -04:00
|
|
|
notable_id { |id| id }
|
2011-03-30 20:31:39 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
Schema.create
|