Skip to content

Instantly share code, notes, and snippets.

@cheeyeo
Last active September 10, 2015 21:20
Show Gist options
  • Save cheeyeo/2d5037d69826d9ccddf5 to your computer and use it in GitHub Desktop.
Save cheeyeo/2d5037d69826d9ccddf5 to your computer and use it in GitHub Desktop.
Testing Application models in Rails engine
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment