Skip to content

Commit

Permalink
Set up the test helper and Gemfile.
Browse files Browse the repository at this point in the history
Now Travis will build across all the Rails-es.
  • Loading branch information
steveklabnik committed Jul 5, 2014
1 parent 99e3d0f commit a5107b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ source 'https://rubygems.org'
gemspec

gem "minitest"

version = ENV["RAILS_VERSION"] || "4.0"

if version == "master"
gem "rails", github: "rails/rails"
else
gem "rails", "~> #{version}"
end
3 changes: 3 additions & 0 deletions active_model_serializers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency "activesupport", ">= 3.2"
spec.add_dependency "rails", ">= 3.2"

spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
end
7 changes: 7 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require "bundler/setup"

require "active_model_serializers"
require "active_support/json"

require 'rails'

0 comments on commit a5107b3

Please sign in to comment.