Hello,
I have a strange situation where I'm making a dummy class that
inherits from a parent class. it calls the parent method fine but is
asking for the child class to provide a view template.
I'm creating the dummy class for testing purposes in a functional test.
Heres basically what I'm trying:
and the error:
[code]
class ParentController < ApplicationController
def parent_method
#... code
end
end
class DummyClass < ParentController
#no child method
end
class ParentControllerTest < Test::Unit::TestCase
fixtures :users
def setup
@controller = DummyController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
def test_parent_method
post :parent_method
assert_response :success
end
end
[/code]
ActionController::MissingTemplate: Missing template
../app/views/dummy/song_search.rhtml
I'm sure it's something obvious I'm missing but I'm just not seeing it.
Thanks for any help,
Clem
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Deploying Rails" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---