Skip to content

Commit

Permalink
test against JRuby and Rubinius
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlinsley committed May 24, 2014
1 parent 12c42e6 commit da44e19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -10,6 +10,8 @@ script:
rvm:
- 1.9.3
- 2.1.2
- rbx-2
- jruby
env:
matrix:
- RAILS=3.2.18
Expand Down
7 changes: 5 additions & 2 deletions Gemfile
@@ -1,5 +1,4 @@
source 'https://rubygems.org'

gemspec

ACTIVE_ADMIN_PATH = File.dirname(__FILE__) unless defined?(ACTIVE_ADMIN_PATH)
Expand All @@ -21,6 +20,10 @@ gem 'devise'
gem 'draper'
gem 'pundit'

gem RUBY_ENGINE =~ /jruby/ ? 'activerecord-jdbcsqlite3-adapter' : 'sqlite3'

gem 'rubysl' if RUBY_ENGINE =~ /rbx/

group :development do
# Debugging
gem 'pry' # Easily debug from your console with `binding.pry`
Expand Down Expand Up @@ -50,6 +53,6 @@ group :test do
gem 'parallel_tests'
gem 'rails-i18n' # Provides default i18n for many languages
gem 'rspec-rails'
gem 'rubinius-coverage' if RUBY_ENGINE =~ /rbx/ # colszowka/simplecov#250
gem 'shoulda-matchers'
gem 'sqlite3'
end
1 change: 1 addition & 0 deletions spec/integration/memory_spec.rb
@@ -1,6 +1,7 @@
require 'spec_helper'

describe "Memory Leak" do
JRuby.objectspace = true if RUBY_ENGINE =~ /jruby/

def count_instances_of(klass)
ObjectSpace.each_object(klass) { }
Expand Down

0 comments on commit da44e19

Please sign in to comment.