search for: test_process

Displaying 20 results from an estimated 49 matches for "test_process".

2005 Feb 08
2
test_process.rb => LoadError
Line 4 and following of test_process.rb reads: if defined?(RAILS_ROOT) # Temporary hack for getting functional tests in Rails running under 1.8.2 class Object #:nodoc: alias_method :require_without_load_path_reloading, :require def require(file_name) begin require_without_load_path_reloading(file_name)...
2006 Mar 01
1
assigns() method disappeared from test_process.rb
I just noticed that the assigns() method has been dropped from action_controller/test_process.rb (http://dev.rubyonrails.org/changeset/3724). Was this an oversight or is there a new process for working with controller instance variables? -- * J * ~
2006 Jul 24
1
All functional tests fail with RoutingError
...b/action_controller/routing.rb:415:in `generate'' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/routing.rb:602:in `extra_keys'' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/test_process.rb:86:in `assign_parameters'' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/test_process.rb:295:in `process'' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/test_process.rb:3...
2005 Oct 10
1
ActionPack tests are failing
...mber of arguments (1 for 0) ./test/controller/../../lib/action_controller/vendor/html-scanner/html/document.rb:41:in `childless?'' ./test/controller/../../lib/action_controller/vendor/html-scanner/html/document.rb:41:in `initialize'' ./test/controller/../../lib/action_controller/test_process.rb:353:in `new'' ./test/controller/../../lib/action_controller/test_process.rb:353:in `html_document'' ./test/controller/../../lib/action_controller/test_process.rb:357:in `find_tag'' ./test/controller/../../lib/action_controller/assertions.rb:242:in `assert_tag''...
2008 Jan 12
0
Can't test application controller methods in functional tests?
...sr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/routing.rb:1244:in `generate_extras'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/routing.rb:1240:in `extra_keys'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/test_process.rb:105:in `assign_parameters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/test_process.rb:380:in `process'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/test_process.rb:356:in `get'' forum_controller_test.rb:464:i...
2007 Oct 04
1
PUT- or POST-ing xml
...hash, except the parameters aren''t a hash: 1) > NoMethodError in ''Assign Roles to Users should assign a single role'' > undefined method `symbolize_keys'' for #<String:0xb722d71c> > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/test_process.rb:101:in > `assign_parameters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/test_process.rb:377:in > `process'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/test_process.rb:353:in > `put'' > ./spec/control...
2006 Apr 22
5
selenium plugin not working with rails 1.1
Hi, I really like selenium, and I just tried the plugin created Jonas Bengtsson. However I cannot get it to run on rails 1.1 and coundn''t find anyone complaining about it? Did anyone get it to run on rails 1.1.2? Greets, Abdur-Rahman
2006 Apr 27
1
Ferret crashing Ruby
.../lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process_without_test'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:16:in `process'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:363:in `process'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:336:in `get'' test/functional/descr_controller_test.rb:88...
2006 May 09
1
name_url in tests
...it! The error occured while evaluating nil.rewrite /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:461:in `url_for'' generated/routing/named_routes/taste.rb:2:in `taste_url'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:431:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:431:in `method_missing'' test/functional/films_controller_test.rb:92:in `test_routes'' -- -- I do things for love or money
2007 Jun 07
0
Functional Tests Fail - No URL can be generated for hash
...ons, but one in particular simply forwards to an introduction page. Here is the code for that action: def intro end Real simple. Just returns and I should visit dashboard/intro.rhtml. My unit test looks like: require ''dashboard_controller'' require ''action_controller/test_process'' require ''action_controller/assertions'' # Raise errors beyond the default web-based presentation class DashboardController; def rescue_action(e) raise e end; end class DashboardControllerTest < Test::Unit::TestCase def setup @controller = DashboardController.ne...
2006 May 05
3
posting xml in functional test
Hello, I''m trying to write a functional test for a simple CRUD controller which accepts / emits xml in a REST- like fashion. However the following code won''t work for me - an exception is generated def test_create post :create, ''<person><name>john</name></person>'',
2007 Mar 19
3
Assert_select
Hi all This is my first post here. I ave been using Rails for a couple of months, and am starting to put together a test suite. But I''m having a problem with assert_select in my functional tests. According to the documentation, it should be fine with two arguments - a CSS selector and a string to test it against. But no matter what I do I keep getting the exception: wrong number of
2008 Feb 05
1
Functional Test has error when testing controller updates_attribute of its parrent.
I am working in Rails 2.0 and I have the following functional test. class VotesControllerTest < ActionController::TestCase def test_should_create_vote assert_difference(''Vote.count'') do post :create, {:vote => {:vote_value => 5, :user_id => users(:nick).id, :entry_id =>
2008 Dec 03
5
How to test a plugin
Guys, I''ve created a plugin, i wanna put my automated test there. However, I got bad file descriptor error when i run the test like normal unit test file: "ruby plugins/acts_as_fox/test/acts_as_fox_test.rb" How to test a plugin? Also, is it right to say that I should only put my unit tests (but not functional test for example) for the plugin in the plugin test folder?
2007 Nov 09
9
fixture_file_upload and edge rspec?
Hi all, I had some specs that were using fixture_file_upload that were passing just fine. Then I froze edge rails to get some 2.0 functionality, then a I upgraded to trunk rspec to deal with uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper After a couple other of tribulations, I have now gotten down to just a couple of not passing specs, all using the fixture_file_upload.
2006 May 08
0
testing named routes
...error occured while evaluating nil.rewrite /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:459:in `url_for'' generated/routing/named_routes/overviews.rb:2:in `overviews_url'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/test_process.rb:431:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/test_process.rb:431:in `method_missing'' functional/films_controller_test.rb:85:in `test_routes'' How can I reference a named route in map.with_options? or is this just plain wrong...
2006 Feb 01
3
Testing components
...ss assert_rendered_file "content" end end But running that gives me: 1) Error: test_content(NewsControllerTest): NoMethodError: undefined method `controller_path'' for NewsController:Class /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:295:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:307:in `get'' news_controller_test.rb:16:in `test_content'' So, I''m guessing I can''t use get() with components? Any advice? Thanks,...
2006 Jan 23
2
where are those defined?
Hi guys, anyone knows where are the get / put method you use in functional controllers test defined? I mean, grep cannot find them :-( I basically need the documentation for put. Thanks Duncan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060123/810be962/attachment.html
2007 Feb 05
0
How do I use a RESTful helper with path_prefix?
...aluating nil.rewrite /Users/jeffreycohen/Sites/modem_app/trunk/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:522:in `url_for'' (eval):19:in `orders_url'' /Users/jeffreycohen/Sites/modem_app/trunk/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:451:in `send'' /Users/jeffreycohen/Sites/modem_app/trunk/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:451:in `method_missing'' ./test/functional/orders_controller_test.rb:45:in `test_client_orders'' I''ve tried every permutati...
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
Hello guys, I''m getting this weird error when trying to run the specs using "rake spec": /home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action_controller/test_process.rb:471:in `method_missing'': undefined method `full_description'' for #<Spec::Rails::Example::ControllerExampleGroup::Subclass_73::Subclass_9:0x7f5fdca4a810> (NoMethodError) from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/matchers.rb:155:in `method_missing''...