aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-06-12 09:19:49 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-06-12 09:19:59 -0700
commitcaf1bfccc680510b48e058d40c2a99cae965b5cb (patch)
tree874eb64e4b4b9a322b2fe64390e2d259eece8809 /actionpack
parent46139d33c06715e74ad450428ece3ee84da98579 (diff)
downloadrails-caf1bfccc680510b48e058d40c2a99cae965b5cb.tar.gz
rails-caf1bfccc680510b48e058d40c2a99cae965b5cb.tar.bz2
rails-caf1bfccc680510b48e058d40c2a99cae965b5cb.zip
use Ruby for mocking
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/url_for_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/url_for_test.rb b/actionpack/test/controller/url_for_test.rb
index f52f8be101..7210c68e73 100644
--- a/actionpack/test/controller/url_for_test.rb
+++ b/actionpack/test/controller/url_for_test.rb
@@ -95,7 +95,7 @@ module AbstractController
end
def test_subdomain_may_be_object
- model = mock(:to_param => 'api')
+ model = Class.new { def self.to_param; 'api'; end }
add_host!
assert_equal('http://api.basecamphq.com/c/a/i',
W.new.url_for(:subdomain => model, :controller => 'c', :action => 'a', :id => 'i')