similar to: Testing action mailer in functional tests - missing section in the book

Displaying 20 results from an estimated 4000 matches similar to: "Testing action mailer in functional tests - missing section in the book"

2005 Sep 14
4
How to drag/drop visitable anchors ?
Hi ! I have the following: <li id="photo_<%= @photo.id %>" class="photo"> <%= link_to(image_tag(url_for_file_column(:photo, :picture)), {:action => ''photo'', :id => @photo}, {:title => @photo.description}) %> </li> <script type="text/javascript" language="JavaScript"><!--
2005 May 23
1
has_and_belongs_to_many dual insert error ?
Hi ! (See references at the end) I have a slight problem. Whenever I save one of my domain models, which contains an has_and_belongs_to_many relationship with another one, the relationships are doubled. My domain is a series of pictures, where each picture can be tagged with one or more words. So, a picture of my dog could be tagged "Jordy, Dog, Dog 2005", for example. In my
2006 Jul 19
1
Testing the flash is brittle?
Hello all, I seem to have an annoying habit of realizing that I''ve asked a question with a blindingly obvious answer just after I''ve asked it but here goes. I''ve noticed that in my functional tests there''s the occasional reliance on the contents of the flash. For example, I have an action that confirms a users identity and may reject them because A)
2005 Dec 07
5
InPlaceEditor update of page contents ?
Hi all ! InPlaceEditor refreshes only the element that was updated. Is there any way to make it update tons of other stuff ? I have a table where changing a value in it causes changes in most other cells (weight to percentage to money). Thanks for any help ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-spinoffs mailing list
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all, Yesterday, I had some problems reading JPG files in my tests. Turns out the problem was that Windows Ruby doesn't set it's Tempfile to work in binary mode. Since I deploy on Linux, that has never been a big problem, but now I'm working on some software that works with binary files exclusively. Anyway, I am making this fix available as a Rails plugin. The details can be
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all, Yesterday, I had some problems reading JPG files in my tests. Turns out the problem was that Windows Ruby doesn't set it's Tempfile to work in binary mode. Since I deploy on Linux, that has never been a big problem, but now I'm working on some software that works with binary files exclusively. Anyway, I am making this fix available as a Rails plugin. The details can be
2007 Feb 07
11
Running patched rails
Hi, Does anyone have any tips for running a patched version of rails? I am currently running rails 1.2.2 and would like to keep up to date with any future releases. I also want to run with the following patch: http://dev.rubyonrails.org/ticket/5748 I am unsure how to manage this. Is this something SVN or rake can handle? Any tips/pointers would be very much appreciated. Thanks, GiantCranes
2007 Jan 24
7
Differences between assert_tag and assert_select
Hi all, I can't seem to make assert_select work for the more complex cases for me. Here's a sample: # View <%= link_to_remote 'Add new', :url => new_phone_url, :submit => 'phones_head' %> # Generated code: <a href="#" onclick="new Ajax.Request('http://test.host/admin/parties/phone/new', {asynchronous:true, evalScripts:true,
2006 Apr 21
2
Action Mailer E-Mail
Two qs: 1. Does AM have to use a real e-mail addr? 2. Where can I get a free e-mail addr that has POP without SSL? -- Posted via http://www.ruby-forum.com/.
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups, thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2007 Mar 27
1
Ticket #7124
http://dev.rubyonrails.org/ticket/7124 I just attached a patch against 1.2 that cleanly applies to trunk too. This allows functional and integration tests to have the same interface to the xhr/xml_http_request method. The patch also includes a deprecation workaround when called without the appropriate parameters. If the patch could also be applied to the 1.2 branch, I would appreciate. The
2006 Mar 21
2
r3981 causes SystemStackError
http://dev.rubyonrails.org/changeset/3981 ?!? The changes are a rename of RailsInfoController to Rails::InfoController. That seems to be completely unrelated to this error: $ ruby script\server => Booting WEBrick... ./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:121:in `underscore': stack level too deep (SystemStackError) from
2006 May 04
6
second assert_tag failling in rails integration test
Hi all, I''m fairly new to rails and ruby, but I''ve come across an interesting glitch and I''m not sure whether I''ve just got something wrong with my assumptions or if it really is an error in the underlying framework... I''ve created a bare-bones set of tests to show you where the problem is. What follows are the steps I went through to reproduce the
2005 Dec 06
5
How to set a default value?
Hello, I have a price field that I validate of numbers. How can I default a 0.0 value? Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
2006 Feb 17
4
PayPal WSDL API on Rails anyone ?
Hi ! Has anyone connected to the Mass Pay API of PayPal using Rails ? I need to do this for a customer, and I wanted to know how easy/hard it was. I have no experience using SOAP, WSDL, etc. I saw soap4r[1] on the RAA[2]. This is probably what I''ll need to use. One question I haven''t answered yet is whether soap4r will accept PayPal''s certificates ? Thanks for any
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included file_column_helper_test.rb that shipped with the file_column plugin: def test_url_for_file_column_different_root_path Entry.file_column :image, :root_path => File.join(RAILS_ROOT, "public/files") e = Entry.new(:image => upload(f("skanthak.png"))) assert_match %r{/public/files/entry/image},
2005 Oct 18
3
hand writing sql for eager loading of thumbnails
Can anyone point me to a resource for hand coding some sql so I can create my own for the following models: I''m using single table inheritance to store related objects eg: Thumbnail < Image < File :: ActiveRecord:Base Image has_many thumbnails Thumbnail has_one image When I come to list thumbnails I''d like to be able to: 1. List all images relating to a product 2.
2007 Feb 06
2
Testing RJS actions
Hi all ! This is my test: def test_destroy_xhr Article.expects(:find).with("1").returns(@article = mock("article")) @article.expects(:destroy).returns(true) delete :destroy, :id => 1, :format => :js assert_template "destroy.rjs" end And my implementation: def destroy @article.destroy respond_to do |format| format.html {
2005 Oct 11
8
Drag & Drop probs
Hi, I''m just trying out the possibilities of script.aculo.us / prototype having two problems... I have a draggable element with revert:false-property and two dropzones. (The draggables are in a <td> and the dropzones are <div>s if that is important.) 1. I want the draggable element to snap back to its original position when it gets dropped anywhere out of a dropzone. 2.
2005 Dec 22
3
How to specify SwitchTower SSH port
Hi ! Following Ezra's suggestions on http://brainspl.at/pages/perfect_vps, I changed the port sshd listens to. I'm trying to setup SwitchTower, and I don't know how to set the port. Where should that be configured ? I can't see anything in switchtower.rake, nor can I see it in the source. If this already exists, can anybody point me to documentation. If not, can I get any