Sha256: 607a0e21c68bd3755956c93975f8502a80c4ca1a66a31b3dd6de6183f3a982f4
Contents?: true
Size: 571 Bytes
Versions: 6
Compression:
Stored size: 571 Bytes
Contents
module Stationed module Generators module Plugins module DatabaseCleaner def self.prepended(base) base.class_option :database_cleaner, type: :boolean, default: true, desc: 'Replace transactional fixtures with DatabaseCleaner' end def finish_template return super unless options[:database_cleaner] gem 'database_cleaner', group: :test copy_file 'database_cleaner.rb', 'spec/support/database_cleaner.rb' super end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems