similar to: Functional test, pls help!!!!

Displaying 20 results from an estimated 1000 matches similar to: "Functional test, pls help!!!!"

2006 Jun 08
8
Routing help.... it is so difficult!
hi guys, sorry to trouble you all but i really dont understand how this routing thing work... it seems easy but it just dont work for me! here''s the situation : my url b4 : http://127.0.0.1:3001/admin/login my url after: http://127.0.0.1:3001/burninglegion/admin/login i wanna do something like this so i went to the routes.rb and type this: ActionController::Routing::Routes.draw do
2006 Apr 20
11
dynamic mock object anyone?
Hi guys, got this problem with creating such a thing... hope anyone could help.. the problem: ok, now i have this mock object that would simulate a external rpc call. eg require ''models/xmlrpc_agent'' class XmlrpcAgent def create(params) 200 end end but the value of the value returned is fixed. which is quite hard for me to test the controller when different
2006 Nov 01
1
strange issue with backgroundrb behind apache/lighttpd
I''m getting strange data back from my worker whenever I run our rails app with more than one dispatcher under lighttpd. just to give some info on what the app does: user submits data to rails app. rails app hands off data to worker, which goes and does it''s thing, storing results in an array of response objects (the array is an attribute of the worker). the response object
2007 Feb 02
0
Error: uninitialized constant LockError
Hey Guys. So, I get this error every so often, and in sneaking at the code, it seems that it could be an easy fix, where it''s looking for a LockError, but I think it''s a LockException. I''m on 0.10.13 with a very large index (about a million docs) that''s staged on several servers, which are updated daily. (Using rails 1.1.6) Thanks for all the hard work.
2004 Dec 29
2
icecast2.2 and aac?
Trying to get the LE version for months now, still treamguys can?t deliver.... Regards, Dennis Heerema -----Original Message----- From: "Greg J. Ogonowski" <greg@orban.com> To: qiang Bao <jakobao@yahoo.com>, icecast@xiph.org Date: Wed, 29 Dec 2004 11:08:04 -0800 Subject: Re: [Icecast] icecast2.2 and aac? Icecast 2.2 works fine with AAC/aacPlus at any bitrate. 32kbps
2006 Apr 27
12
how to do a count with a variable...
hi guys, got this problem... in my controller, when i wanna do a @temp.count it fails... then i went to try counter = @temp.count which also failed.. thus, i feel that the count is not available for ActiveRecord::Base..so i went to the Model class eg. user.rb so in user.rb : ... def count_uesr count = 0 self.each do |record| count ++ end return count end then it ended up having
2005 Feb 04
2
how to generate a function from a linear model
Hi All, I am trying to generate a function from a linear model. I think there should be build-in function that perform this action but I've had no luck finding it. For example, I have a model created using lm(). model <- lm(sat.d~1+sat.n+I(sat.n^2)) What I would like to have is a function (similar to the one generated by splinefun()) so that I can use it on different data-sets.
2006 Jun 07
4
WEBrick wouldnt start....
hi guys, just did a search and cant find anything helpful.. suddenly my WEBrick cant start.... omg.... dunno wat''s wrong with it that''s wat i typed : ......$ruby script/server => Booting WEBrick... ......$ that''s all... i dont even know wat''s wrong and when i did a ps -F -C ruby, i also couldnt find anything..... did i jsut corrupt the file or wat???
2005 Apr 05
5
R can not show plots (in Mac OS X terminal)
Dear all: I am a newbie in Mac. Just installed R and found R did not react on my command plot (I use command line in terminal). It did not give me any error message, either. All it did was just giving out a new command prompt--no reaction to the plot command. I suppose whenever I gives out a command of plot, it will invoke the AquaTerm for a small graph, as I experience in octave. What can I
2004 Dec 29
3
icecast2.2 and aac?
it seems that icecast 2.2 can only stream aac at 128kbps! mp3 and ogg are ok at all bitrates. is it a bug or my config wrong? --------------------------------- Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jul 12
4
file couldn't play after Speex encode and decode
Dear sir, I've a problem that the .wav file couldn't play after calling "sampleenc male.wav|sampledec male_speex_15.wav".I found that the new file male_speex_15.wav is smaller than the original file in size.I implemented the test on Linux system.The original file male.wav is 96044 bytes,while the new file male_speex_15.wav is 96000 bytes.I'm eager to know the reason.Thankyou!
2006 Jan 26
3
Help on implementing rails from html with php
Hi guys, just started using rails and is trying to implementing the present html with some rails... However i met this problem when i am trying to port over some php code in html to rails and i cant find any method to successful convert the php codes. Below is a feature i tried to implement in rails way: there are 2 buttons on the html. Besides these 2 buttons is an infobox. So, whenever
2003 Mar 07
24
Hello, I am trying to use 'R' for K-means simulatio, could you please advise me how I can read my data into a two dimesional array? Or is there any method which directly reads the excell file? Please let me know asap. Regards Skanda Kallur Cogito, Ergo Sum! Rene Descartes
2008 Jun 20
2
pci passthrough on RHEL 4.5
Hi there, I have a Dell T3400 Workstation with CentOS5.1 as dom0. I have hidden a network interface in dom0 to pass it to domU. The domU can come up with the NIC when it''s OS is CentOS5.1 or RHEL5. But when it comes to RedHat4.5 , the NIC can not be found. As I type the command "lspci" in RHEL4.5 domU, it returned: pcilib: Cannot open /proc/bus/pci
2017 Dec 23
1
Question about disabling UFO on guest
Hello everyone, I would like to ask a question regarding to disable UFO of virtio vNIC in my guest. I have read the document at https://libvirt.org/formatdomain.html *host* The csum, gso, tso4, tso6, ecn and ufo attributes with possible values on and off can be used to turn off host offloading options. By default, the supported offloads are enabled by QEMU. *Since 1.2.9 (QEMU only)* The
2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just like the example in the post http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released However, trying it in irb gets me the following error: >> require ''mocha'' => true >> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007'')) NoMethodError:
2007 Jul 25
3
autotest + integration testing (follow_redirect!) error
I''ve got an interesting (possibly) problem right now between autotest and rails integration tests. There are a few things to preface this with. Works fine: rake test rake test:integration Blows up: autotest Autotest is correctly determining rails and runs tests just fine. One part of the behavior is that if I save a change in just the integration test (even hitting cmd+s to trigger a
2006 Feb 06
9
tests fine, but fail under rake
Hi there, So I have an odd error at the moment that only occurs when I run tests via rake. It''s happening with two tests now. Under a simple ruby run, the tests are fine, e.g.: D:\User\Code\ruby\prometheus>ruby test\functional\story_comments_controller_test .rb Loaded suite test/functional/story_comments_controller_test Started ......... Finished in 2.37 seconds. 9 tests, 65
2007 Aug 07
2
speex compression rate
I want to know speex compression rate. On the speex website,it says" Speex is based on CELP and is designed to compress voice at bitrates ranging from 2 to 44 kbps." Is the original voice at bitrates raning from 2 to 44 kbps,or the compressed voice at bits ranging from 2 to 44 kbps? what is the maxmium compression rate? Thanks a lot! Weiqin Bao -------------- next part -------------- An
2005 Dec 18
1
assert_template fails?
Hi All, I have a seemingly simple problem - but can''t figure out the problem. I have a simple functional test like so: def test_should_show_search_dropdown get :index assert_response :success assert_template :search end Inspite of having search.rhtml in /app/views/layout, it fails with an error: 1) Error: test_should_show_search_dropdown(SearchControllerTest):