Search results

  1. C

    Translating this test using Mocha

    Thanks for the reply. Where would I find this corresponding mailing list?
  2. C

    Translating this test using Mocha

    Hello, I'm trying to learn Mocha and having a bit of problems how to translate some of my tests to the mocha world. For example - I'm trying to convert this simple test: def test_get_feed_details_w_bad_url assert_incomplete_test get :feed_widget_details, :k =>...
  3. C

    Graceful way to handle execution expired and bad URI errors??

    Hello, I have a program that takes blog urls that our customers enter into their profiles. In some cases they enter bad feeds (IE html pages instead of atom or rss), and it throws these two errors: execution expired and bad URI errors in the view. I need to find a graceful way...
  4. C

    Accessing ancester method is fine but asking for child template

    Hello, I have a strange situation where I'm making a dummy class that inherits from a parent class. it calls the parent method fine but is asking for the child class to provide a view template. I'm creating the dummy class for testing purposes in a functional test. Heres...
  5. C

    javascript_tag replacing whitespaces w/ '%20'

    Hello, I have a form that tests if a title has been changed since the page was loaded and the page has been submitted. If the page title has been changed then a confirm box will ask if the user wants to have the title changed. The problem is if the person hits cancel, all white spaces...
  6. C

    Rake environment hosed - error on Rakefile

    Hello, Suddenly, my dev environment is completely destroyed. I have multiple projects and whenever I try to run any rake tasks I get an error on line 11 of my Rakefile. Here's the error: user$ rake (in /Users/user/near-time/some_site.net-trunk) rake aborted! can't convert nil...
  7. C

    Finding and defeating a stale object

    Hello, After a rather major update to our site, suddenly we are getting a large # of "Attempted to update a stale object" errors. I am quite new to rails and I understand the concept of optimistic locking but I don't know how to track down and kill the multiple attempts at saving...
Top