Sha256: 66cf5a5b4c8349076f4207c35dcd81e16231d9d578cd96623c0e55201523e7d5

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

desc "Creates a test rails app for the specs to run against"
task :setup do
  require 'rails/version'
  system("mkdir spec/rails") unless File.exists?("spec/rails")

  rails_new_opts = %w(
    --skip-turbolinks
    --skip-spring
    --skip-bootsnap
    -m
    spec/support/rails_template.rb
  )
  system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} #{rails_new_opts.join(' ')}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_admin_sidebar-1.2.0 tasks/test.rake
active_admin_sidebar-1.1.0 tasks/test.rake