search for: functional_test

Displaying 2 results from an estimated 2 matches for "functional_test".

Did you mean: functional_tests
2006 Apr 28
2
tests and login_engine
Hi there, I just started writing tests today after some months of using rails (slap wrists). I seem to be getting the hang of things, but I''m hitting a wall when it comes to functional_testing pages protected by login_engine/user_engine. all my assertions come back with: Expected response to be a <:success>, but was <302> Is there a way I can login from within a test? thanks dorian -- I do things for love or money
2006 May 24
0
[tip] Test coverage
....org/hiki.rb?rcov ------------ desc "Look for possibly missing tests in unit and functional directories" task :missing_tests models = Dir.glob("app/models/**/*.rb") controllers = Dir.glob("app/controllers/**/*.rb") unit_tests = Dir.glob("test/unit/**/*.rb") functional_tests = Dir.glob("test/functional/**/*.rb") models.each do|model| original_dir, suspected_test = File.split(model) suspected_test.sub!(''.rb'', '''') test_found = !unit_tests.select{|s| s =~ /#{suspected_test}_test/}.empty? puts "unit test apparent...