Browse files

fix failing tests on Travis

  • Loading branch information...
1 parent 0a0fa83 commit 58424e3b639c5f96b958622a66c62da07befcfb7 @d4rky-pl d4rky-pl committed Nov 17, 2015
View
3 features/templates/my_rails_gem/spec/spec_helper.rb
@@ -1,5 +1,8 @@
require 'bundler/setup'
require 'rails/all'
+
+ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
+
begin
# This prevents 'uninitialized constant Jquery::Rails::Railtie::PROTOTYPE_JS (NameError)'
require 'jquery/rails'
View
3 features/templates/my_railties_gem/spec/spec_helper.rb
@@ -1,5 +1,6 @@
require 'bundler/setup'
-require 'rails'
+require 'rails/all'
require 'ammeter/init'
Bundler.require
+ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"

0 comments on commit 58424e3

Please sign in to comment.