search for: ad_control

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

Did you mean: addcontrol
2005 Dec 14
1
Problems with testing - error posting to other controller
Hi, I''m trying to test my ad_controller. In order to create an ad, the user has to be logged in, so I have written a login() that logs in a valid user and generates a session[:user_id], like: def login (login="bob", password="atest") post "user/login", :user => { :login => login, :password...
2006 Nov 30
4
response is null when using should_render_rjs
...t to change_ad_type_form" do controller.should_render_rjs :page, ''ad_sub_form'', :replace_html, ''stuff'' get ''change_ad_type_form'' end which result is the following: 1) NoMethodError in ''When creating a new ad, the ad_controller should return Text subform on AJAX request to change_ad_type_form'' nil does not respond to `rjs'' or `has_rjs?'' /Users/lasto/clients/ibc/project_n/vendor/plugins/rspec/lib/spec/ rails/render_matcher.rb:61:in `should_render_rjs'' /Users/lasto/clients/ibc/proje...