Displaying 20 results from an estimated 600 matches similar to: "Unit testing + instance variables"
2005 Mar 07
2
0.10.1 Upgrade problems
I just did an upgrade to Rails 0.10.1. It seems to have broken my
app. I get this error (nothing works):
ActionController::RoutingError (No route for path: ""):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/routing.rb:258:in
`recognize!''
/usr/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:32:in
`dispatch''
2005 Jul 22
3
testing application_helper.rb
I am trying to run some functional (or are they unit?) tests on my
application_helper.rb. So far, I''ve not had any success in being able
to call the methods defined in application_helper.rb.
Here is my app/test/functional/helpers.rb
require File.dirname(__FILE__) + ''/../test_helper''
require File.dirname(__FILE__) +
2005 Mar 15
6
New Beta version of Rake for Rails Users ... Fix for Ruby 1.8.2 unit test bug
I have a new version of Rake that I''m (almost) ready to release. But before I
make an official release, I would like some Rails folk to give it it try ...
Why?
Because it contains a workaround for the notorious Ruby 1.8.2 test/unit bug.
Using this version of rails, it should be possible to unit test a rails app
without patching the Ruby 1.8.2 test/unit library.
Where to get it?
2014 Apr 14
1
duplication regression (?)
Below is an example of output that changed as a result of r64970. I
did not see any NEWS item suggesting this change is expected.
Note that the example is contrived and I don't have a use case for it.
I stumbled across it when playing with recent changes in R relating to
duplication. Does the example use undefined syntax?
-----
fn1 <- function(mylist) {
fn1a <- function()
2006 Apr 16
4
Preventing crawlers on link_to''s
My understanding was that using the :post=>true on a link_to() was supposed
to prevent search engine crawlers from triggering the link. However, this
does not seem to be working for me. Is there something else that I should
be/can be doing to accomplish this? Thanks.
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Mar 09
8
How to set ''Return-Path'' in ActionMailer to avoid SPF failure?
I was wondering if there was any way to set the ''Return-Path'' of an
email when using ActionMailer. Without the ability to set the
''Return-Path'' of an email, it is impossible to avoid being labeled as
''spam'' by many SMTP gateways if trying to send mail on another''s
behalf. SPF doesn''t care about the
2005 Mar 02
4
Development without server restart?
I thought that Rails was supposed to allow development of an
application *without* having to restart the webserver? I know this
works in WEBRick ... but this doesn''t seem to be the case in Apache
(linux). Am I missing something here, or does this only work in
webrick?
I suppose one should argue that for development you should just use
webrick, but this wasn''t an option for me
2010 Sep 06
2
dataframe row names from list
Hi,
I have a list which looks like this...
> str(y)
List of 10
$ : chr [1:4] "ABCD" "5" "0" "1"
$ : chr [1:4] "DEF" "15" "1" "16"
$ : chr [1:4] "AAA" "2" "17" "8"
$ : chr [1:4] "SSS" "15" "25" "1"
$ : chr [1:4] "III"
2005 Sep 25
7
(newbie) Missing Template Error using Rolling With Rails Tutorials
Hi all,
New to the list, Ruby, & RoR. I''ve been going through the Rolling
With Rails tutorial, but am getting the following error when the
instructions tell you to add the @recipes = Recipe.find_all line to
the RecipeController:
Template is missing
Missing template ./script/../config/..//app/views//recipe/index.rhtml
The index.rhtml file is right where it''s supposed to
2005 Mar 07
2
Login generator question
Hello
I''m using the login generator on my application, and I found a problem
with it.
My application is a rack inventory thing, which shows a rack with
machines and KVMs and you can click on a rack item to show/edit/destroy
it. The edit and destroy actions are protected by the login generator.
Now say a user clicks on "destroy" for some machine. He''ll be shown the
2015 Jan 23
2
[PATCH 1/2] mllib: tests: add tests for string_lines_split
---
mllib/common_utils_tests.ml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/mllib/common_utils_tests.ml b/mllib/common_utils_tests.ml
index 09d5c51..283e9a1 100644
--- a/mllib/common_utils_tests.ml
+++ b/mllib/common_utils_tests.ml
@@ -27,6 +27,7 @@ let prog = "common_utils_tests"
let assert_equal_string = assert_equal ~printer:(fun x -> x)
let
2002 Nov 21
2
[LLVMdev] DSnode type question
Dear LLVM,
When I use analyze to construct the DSGraph for the lists.c program in
test/Programs/SingleSource/Shootout directory. I found out the heap node
in the function test_list() all have type FOLDED:R. I was wondering why
it's not heapnode anymore? My pass need to use this type information to
determine whether a node is heap node. Is there any way I can know this is
a heap node in this
2002 Dec 02
1
[LLVMdev] DSnode type question
Hi, Chris,
I was wondering if you had a chance to look at this problem. Could
you let me know how to decide if this is a heap node in this case? It's
important because my code depends on this information.
Thanks,
Jerry
On Thu, 21 Nov 2002, Chris Lattner wrote:
> > When I use analyze to construct the DSGraph for the lists.c program in
> > test/Programs/SingleSource/Shootout
2006 May 24
6
newbie question: missing template
Hi
I''m new to this forum and new to Rails so excuse me if this is a daft
question.
I''m following the ONLamp.com tuturial and all has been well untill
changing the template for the recipes. I have followed the instructions
and added this code to the controller:
class RecipeController < ApplicationController
scaffold :recipe
def list
@recipes = Recipe.find_all
end
2006 May 18
4
WebServices and DateTime - 3 elements of civil date are necessary
I simply trying to receive an array of objects, retrieved by
ActiveRecord from table with datetime column and I have:
test_list(SoapControllerApiTest):
ArgumentError: 3 elements of civil date are necessary
/usr/lib/ruby/1.8/date.rb:1214:in `new_with_hash''
/usr/lib/ruby/1.8/date.rb:1258:in `parse''
....
It''s a bug or I am wrong somewhere?
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple
authentication, and its been working fine.
Now I want to extend it by simply adding ''type_id'' field which links to
my ''user_types'' table, but I''m hitting:
#<ActionController::SessionRestoreError: Session contained objects where
the class definition
2006 Jan 03
14
Family Connection 0.9
Family Connection is an easy-to-setup online hub for your family that
includes a Family News section, and an Address Book. Currently,
there is no documentation on installing the Rails application itself
(hence the 0.9 version number).
Once installed, Family Connection guides the family website
administrator through a simple two-page setup process. The web
application restricts access
2006 Jul 07
2
Errno::ENOENT in RecipeController#new
I''m brand new to Rails and I''m trying to work through the ONLamp.com
Rolling with Ruby on Rails tutorial.
I''m trying to connect to my mysql database and I''m getting the
following:
<i>
Errno::ENOENT in RecipeController#new
No such file or directory - /tmp/mysql.sock
RAILS_ROOT: /home/jason/rails/cookbook/public/../config/..
Application Trace |
2006 Jan 03
5
Are cache sweepers used?
After drawing many virtual blank stares in the IRC channel and finding
zero results on the wiki for ''sweeper'' I''m left to wonder whether
these are actually officially supported, or are on their way toward
being deprecated. Is there a better way of expiring caches on model
saves and deletions?
Sincerely,
Tom Lieber
tom@alltom.com
http://AllTom.com/
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working
through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help?
I''m trying to get the cookbook application to work via a Postgresql db.
But get the following error when trying to access
http://127.0.0.1:3000/recipe/new
Errno::EINVAL in RecipeController#new
Invalid argument