Sha256: 8aec166906db1e4c96ed7e58a00c9f5acf4a62b32109e25a1a3ddfad79c52929

Contents?: true

Size: 665 Bytes

Versions: 18

Compression:

Stored size: 665 Bytes

Contents

Bundler.setup
require 'machinist/active_record'
require 'sham'
require 'faker'
require 'ransack'

Dir[File.expand_path('../../spec/{helpers,support,blueprints}/*.rb', __FILE__)]
.each do |f|
  require f
end

Sham.define do
  name     { Faker::Name.name }
  title    { Faker::Lorem.sentence }
  body     { Faker::Lorem.paragraph }
  salary   { |index| 30000 + (index * 1000) }
  tag_name { Faker::Lorem.words(3).join(' ') }
  note     { Faker::Lorem.words(7).join(' ') }
  only_admin  { Faker::Lorem.words(3).join(' ') }
  only_search { Faker::Lorem.words(3).join(' ') }
  only_sort   { Faker::Lorem.words(3).join(' ') }
  notable_id  { |id| id }
end

Schema.create

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ransack-2.4.1 spec/console.rb
ransack-2.4.0 spec/console.rb
ransack-2.3.2 spec/console.rb
ransack-2.3.1 spec/console.rb
ransack-2.3.0 spec/console.rb
ransack-1.8.10 spec/console.rb
ransack-2.1.1 spec/console.rb
ransack-2.1.0 spec/console.rb
ransack-2.0.1 spec/console.rb
ransack-2.0.0 spec/console.rb
ransack-1.8.9 spec/console.rb
ransack-1.8.8 spec/console.rb
ransack-1.8.7 spec/console.rb
ransack-1.8.6 spec/console.rb
ransack-1.8.4 spec/console.rb
ransack-1.8.3 spec/console.rb
ransack-1.8.2 spec/console.rb
ransack-1.8.1 spec/console.rb