aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-02-02 18:15:22 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-02-02 18:18:08 +0900
commit6c6668510ba63aeff942454647c98bda776fade1 (patch)
tree088818cda12d812a5dca22895b41f7fcd300584f /actionview/test
parent0157608508cdb432b37324e1653b60d6b2e8c692 (diff)
downloadrails-6c6668510ba63aeff942454647c98bda776fade1.tar.gz
rails-6c6668510ba63aeff942454647c98bda776fade1.tar.bz2
rails-6c6668510ba63aeff942454647c98bda776fade1.zip
module Blog; class Post appears twice in AV tests
This causes TypeError when loaded separately
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/activerecord/polymorphic_routes_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb
index fb670e5dbe..dcad0b424c 100644
--- a/actionview/test/activerecord/polymorphic_routes_test.rb
+++ b/actionview/test/activerecord/polymorphic_routes_test.rb
@@ -45,7 +45,7 @@ class ModelDelegate
end
end
-module Blog
+module Weblog
class Post < ActiveRecord::Base
self.table_name = "projects"
end
@@ -72,8 +72,8 @@ class PolymorphicRoutesTest < ActionController::TestCase
@fax = Fax.new
@delegator = ModelDelegator.new
@series = Series.new
- @blog_post = Blog::Post.new
- @blog_blog = Blog::Blog.new
+ @blog_post = Weblog::Post.new
+ @blog_blog = Weblog::Blog.new
end
def assert_url(url, args)