annotate test/test_helper.rb @ 373:6e3e1e7b0212
Handle unique error in model instead of controller.
author |
nanaya <me@myconan.net> |
date |
Sat, 06 Jun 2015 22:12:56 +0900 |
parents |
7c7b7906ebd9 |
children |
|
rev |
line source |
292
|
1 ENV["RAILS_ENV"] ||= "test"
|
331
|
2 require File.expand_path("../../config/environment", __FILE__)
|
|
3 require "rails/test_help"
|
292
|
4
|
|
5 class ActiveSupport::TestCase
|
|
6 ActiveRecord::Migration.check_pending!
|
|
7
|
|
8 # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
|
9 #
|
|
10 # Note: You'll currently still have to declare fixtures explicitly in integration tests
|
|
11 # -- they do not yet inherit this setting
|
|
12 fixtures :all
|
|
13
|
|
14 # Add more helper methods to be used by all tests here...
|
|
15 end
|