Sha256: c5b6ad7aaad2a53a0b9c9c94f4edbd0dd90292727f19f0d011641afa98c0647d
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter "/rails/" add_filter "/vendor/" end # prepare ENV for rails require 'rails' ENV['RAILS_ROOT'] = File.expand_path("../rails/rails-#{Rails::VERSION::STRING}", __FILE__) # ensure testing application is in place unless File.exists?(ENV['RAILS_ROOT']) puts "Please run bundle exec rake setup before running the specs." exit end # load up activeadmin and activeadmin-axlsx require 'activeadmin-axlsx' ActiveAdmin.application.load_paths = [ENV['RAILS_ROOT'] + "/app/admin"] # start up rails require ENV['RAILS_ROOT'] + '/config/environment' # and finally,here's rspec require 'rspec/rails' ActiveAdmin.application.authentication_method = false ActiveAdmin.application.current_user_method = false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-axlsx-2.1.1 | spec/spec_helper.rb |