aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-01 08:23:06 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-01 08:23:06 -0700
commit9616a7ee1a18f259dd249e6df6fafcb8b8af9b10 (patch)
tree21bdf33e7fc62b8c2f61cb9587af33f54011b0b9 /railties/test
parentf8483dd48bc538cdab03ac5b7a393cd8571dc0f9 (diff)
parentbca36b080b77089cb8b2e8269c6be3b975171216 (diff)
downloadrails-9616a7ee1a18f259dd249e6df6fafcb8b8af9b10.tar.gz
rails-9616a7ee1a18f259dd249e6df6fafcb8b8af9b10.tar.bz2
rails-9616a7ee1a18f259dd249e6df6fafcb8b8af9b10.zip
Merge pull request #12733 from robin850/fix-railties-build
Fix railties build
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/app_rails_loader_test.rb4
-rw-r--r--railties/test/paths_test.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/app_rails_loader_test.rb b/railties/test/app_rails_loader_test.rb
index ceae78ae80..92cb3233d8 100644
--- a/railties/test/app_rails_loader_test.rb
+++ b/railties/test/app_rails_loader_test.rb
@@ -22,8 +22,8 @@ class AppRailsLoaderTest < ActiveSupport::TestCase
exe = "#{script_dir}/rails"
test "is not in a Rails application if #{exe} is not found in the current or parent directories" do
- File.stubs(:exists?).with('bin/rails').returns(false)
- File.stubs(:exists?).with('script/rails').returns(false)
+ File.stubs(:exist?).with('bin/rails').returns(false)
+ File.stubs(:exist?).with('script/rails').returns(false)
assert !Rails::AppRailsLoader.exec_app_rails
end
diff --git a/railties/test/paths_test.rb b/railties/test/paths_test.rb
index 178c505865..ed4559ec6f 100644
--- a/railties/test/paths_test.rb
+++ b/railties/test/paths_test.rb
@@ -3,7 +3,7 @@ require 'rails/paths'
class PathsTest < ActiveSupport::TestCase
def setup
- File.stubs(:exists?).returns(true)
+ File.stubs(:exist?).returns(true)
@root = Rails::Paths::Root.new("/foo/bar")
end