Displaying 2 results from an estimated 2 matches for "foocontrollertest".
Did you mean:
foo_controller_test
2005 Dec 20
2
printing/logging during tests
Hi all,
I''m trying to output some info to see what''s happening in a controller
during functional tests.
Problem: ''print'' only works in the test code, but not in the production
code that''s being called by the tests.
Example:
In FooControllerTest:
def test_list
print "1: starting" <<----- WORKS FINE
get :list
end
In FooController
def list
print "2: inside" <<----- DOESN''T WORK
logger.error "2: inside too" <<----- DOES...
2007 Apr 03
1
functional test, fixtures should load by myself ?
rails version: 1.2.3
ruby version: 1.8.5
----
functional test, fixtures should load by myself ?
class FooControllerTest::Test::Unit::TestCase
fixtures :foo, :bar
def setup
setup_with_fixtures # <--- must call this ?
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to...