File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed
Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,10 @@ source 'https://rubygems.org'
33# Specify your gem's dependencies in active_admin_importable.gemspec
44gemspec
55group :test do
6- gem 'rails' , '4.1.9 '
6+ gem 'rails' , '4.2.0 '
77 gem 'rspec-rails'
8- gem 'activeadmin' , github : 'activeadmin' , ref : '54bede0558a99ab759f98f9b24e1b0144063a81e'
9-
8+ gem 'activeadmin' , github : 'activeadmin' , ref : 'd787029e5523be2eb2ed99816eb0cecca2b72862'
109 gem 'coveralls' , require : false # Test coverage website. Go to https://coveralls.io
11-
12- gem 'devise'
1310 gem 'sass-rails'
1411 gem 'sqlite3'
1512 gem 'launchy'
Original file line number Diff line number Diff line change 88require "bundler"
99Bundler . setup
1010
11- ENV [ 'RAILS' ] = '4.1.9'
12-
1311ENV [ 'RAILS_ENV' ] = 'test'
12+ # Ensure the Active Admin load path is happy
13+ require 'rails'
14+ ENV [ 'RAILS' ] = Rails . version
1415ENV [ 'RAILS_ROOT' ] = File . expand_path ( "../rails/rails-#{ ENV [ 'RAILS' ] } " , __FILE__ )
15-
1616# Create the test app if it doesn't exists
1717unless File . exists? ( ENV [ 'RAILS_ROOT' ] )
1818 system 'rake setup'
1919end
2020
21- # Ensure the Active Admin load path is happy
22- require 'rails'
23-
2421require 'active_model'
25-
2622# require ActiveRecord to ensure that Ransack loads correctly
2723require 'active_record'
28-
2924require 'active_admin'
3025ActiveAdmin . application . load_paths = [ ENV [ 'RAILS_ROOT' ] + "/app/admin" ]
31-
3226require ENV [ 'RAILS_ROOT' ] + '/config/environment.rb'
33-
3427# Disabling authentication in specs so that we don't have to worry about
3528# it allover the place
3629ActiveAdmin . application . authentication_method = false
4235require 'capybara/rspec'
4336require 'capybara/poltergeist'
4437
45-
46-
47-
4838Capybara . register_driver :poltergeist do |app |
4939 Capybara ::Poltergeist ::Driver . new ( app , {
5040 js_errors : true ,
5545 } )
5646end
5747
58-
5948Capybara . javascript_driver = :poltergeist
6049
61-
6250RSpec . configure do |config |
6351 config . use_transactional_fixtures = false
6452
Original file line number Diff line number Diff line change 2323run "rm -r test"
2424run "rm -r spec"
2525
26- # Setup a root path for devise
2726route "root :to => 'admin/dashboard#index'"
2827
2928rake "db:migrate"
You can’t perform that action at this time.
0 commit comments