Sha256: 84e5b4a02c1cd9cef1c35ba3be1897edc78c0cdf03ff11e525bf1a4c85871beb
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
require 'machinist/active_record' require 'sham' require 'faker' require 'ransack' Time.zone = 'Eastern Time (US & Canada)' Dir[File.expand_path('../{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(' ') } end RSpec.configure do |config| config.before(:suite) { Schema.create } config.before(:all) { Sham.reset(:before_all) } config.before(:each) { Sham.reset(:before_each) } config.include RansackHelper end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ransack-0.3.0 | spec/spec_helper.rb |
ransack-0.2.1 | spec/spec_helper.rb |
ransack-0.2.0 | spec/spec_helper.rb |