Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved rails into test directory

  • Loading branch information...
commit d877fdaf805b76e983c909fe3f13798354b9197b 1 parent d6a55f8
Justin Knowlden authored
View
4 .gitignore
@@ -1,2 +1,2 @@
-rails/log/*
-rails/**/*.db
+test/rails/log/*
+test/rails/**/*.db
View
0  rails/app/controllers/application.rb → test/rails/app/controllers/application.rb
File renamed without changes
View
0  rails/config/boot.rb → test/rails/config/boot.rb
File renamed without changes
View
0  rails/config/database.yml → test/rails/config/database.yml
File renamed without changes
View
0  rails/config/environment.rb → test/rails/config/environment.rb
File renamed without changes
View
0  rails/config/environments/test.rb → test/rails/config/environments/test.rb
File renamed without changes
View
0  rails/config/routes.rb → test/rails/config/routes.rb
File renamed without changes
View
0  rails/db/schema.rb → test/rails/db/schema.rb
File renamed without changes
View
4 test/test_helper.rb
@@ -1,9 +1,9 @@
ENV["RAILS_ENV"] = "test"
-ENV["RAILS_ROOT"] = File.expand_path(File.join(File.dirname(__FILE__), '..', 'rails'))
+ENV["RAILS_ROOT"] = File.expand_path(File.join(File.dirname(__FILE__), '..', 'test', 'rails'))
require File.expand_path(File.join(ENV["RAILS_ROOT"], 'config', 'environment'))
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'load_model'))
require 'test_help'
-load(File.dirname(__FILE__) + "/../rails/db/schema.rb")
+load(File.join(ENV["RAILS_ROOT"], "db", "schema.rb"))
class User < ActiveRecord::Base
has_many :posts, :conditions => {:published => true}

0 comments on commit d877fda

Please sign in to comment.
Something went wrong with that request. Please try again.