search for: controller_test

Displaying 4 results from an estimated 4 matches for "controller_test".

2006 Aug 04
2
Functional Testing Anomoly
...ed post( :edit, :record => StatusChanger.invalid_data_hash) assert_response :success assert_template ''edit'' assert assigns(:record) assert_equal false, assigns(:record).valid? end This particular method is part of a larger set of functional tests. If I run, $ ruby controller_test.rb -n ''test_save_failed'' it validates fine. If I run, $ ruby controller_test.rb I receive the following: "Expected response to be a <:success>, but was <302>" I''m utterly confused. Any ideas? -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
1
Can somebody explain when to reload an ActiveRecord
Hi all, I''ve the following test method in my controller_test which increment the ''qty'' attribute in a has_many association, ''sa_report_products''. The ''item_count'' method returns the sum of all qty''s in ''sa_report_products'': def test_add_product_to_report sa_rpt = SaRepo...
2005 Apr 29
2
problem installing login generator on windows
...ccessfully installed login_generator, version 1.1.0 Installing RDoc documentation for login_generator-1.1.0... WARNING: Generating RDoc on .gem that may not have RDoc. templates/controller.rb:7:26: Expected class name or ''<<''. Got RubyToken::TkLT:"<" templates/controller_test.rb:10:9: Expected class name or ''<<''. Got RubyToken::TkLT: "<" ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - classes/<.html
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep getting the following error when I run "generate login Account": /usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in `manifest'': No manifest for ''login'' generator. (NotImplementedError) from (eval):3:in `__send__'' from (eval):3:in `manifest'' from