Skip to content

Commit

Permalink
remove duplicated self.view_paths assingment on controller tests [#4206
Browse files Browse the repository at this point in the history
… state:commited]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information
spastorino authored and wycats committed Mar 19, 2010
1 parent e7276a9 commit e629e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/controller/new_base/render_action_test.rb
Expand Up @@ -117,7 +117,7 @@ module RenderActionWithApplicationLayout
# # ==== Render actions with layouts ====
class BasicController < ::ApplicationController
# Set the view path to an application view structure with layouts
self.view_paths = self.view_paths = [ActionView::FixtureResolver.new(
self.view_paths = [ActionView::FixtureResolver.new(
"render_action_with_application_layout/basic/hello_world.html.erb" => "Hello World!",
"render_action_with_application_layout/basic/hello.html.builder" => "xml.p 'Hello'",
"layouts/application.html.erb" => "Hi <%= yield %> OK, Bye",
Expand Down Expand Up @@ -202,7 +202,7 @@ class TestLayout < Rack::TestCase

module RenderActionWithControllerLayout
class BasicController < ActionController::Base
self.view_paths = self.view_paths = [ActionView::FixtureResolver.new(
self.view_paths = [ActionView::FixtureResolver.new(
"render_action_with_controller_layout/basic/hello_world.html.erb" => "Hello World!",
"layouts/render_action_with_controller_layout/basic.html.erb" => "With Controller Layout! <%= yield %> Bye"
)]
Expand Down

0 comments on commit e629e21

Please sign in to comment.