Displaying 20 results from an estimated 1000 matches similar to: "zentest q''s"
2006 Apr 16
1
How to use ZenTest?
OK, supposedly it has Rdoc documentation but I couldn''t find it (not helped
by the fact that I''ve never used offline rdocs so I don''t really know where
to look).
So, does anybody know how to use ZenTest effectively with Rails? I read all
I could find on the web but nothing really illuminated for me. I''m trying to
get into Test Driven Development (I have already
2006 Apr 23
13
post() to other controller in functional test?
In a functional test, I want to call an action in another controller
(a login) before testing things in the current controller. As far as I
can tell from the extremely sparse documentation and the AWDR book,
this seems to be impossible. The post() functions takes an action
argument only, and that''s that. Surely I must be misunderstanding
things?
--
Calle Dybedahl
2006 Feb 19
8
require ''digest/md5'' not working on Mac or Windows
I''ve tried the following line in ruby script/console
require ''digest/md5''
Both my Mac (Intel iMac) and my Windows box return "false"... Any ideas
what could be wrong? I was trying to do the RoR Recipe on page 54 of
Chad Fowler''s new (beta) book.
-Mark
--
Posted via http://www.ruby-forum.com/.
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op.
$ yes | sudo gem install cached_model
Or, you can download cached_model and memcache-client (our zippy-fast
memcache library, required) from:
http://rubyforge.org/frs/?group_id=1266
I don''t have the README posted for making cached_model work online
yet, so here it is:
= CachedModel
Rubyforge Project:
http://rubyforge.org/projects/rctools/
== About
2006 May 13
9
Is test driven development for newbies?
I''m still reading other people''s code and going over the books. As I
was doing this a question sprang up in my mind.
Is it wise for total newbies to attempt test driven development from the start?
Basically, if you''re a newbie like me, chances are your tests might
even be broken themselves. Or will attempting to write tests be good
practice for actual coding as
2006 May 15
6
Getting Net::IMAP to work with PLAIN auth type...
Hi there,
I''m new to rails and I''ve been successful tinkering around but
am miffed by the process of trying to connect to my mail server to receive
email for ActiveMailer parsing. I''m hosted on TextDrive and have read the
following article on the RubyonRails wiki:
http://wiki.rubyonrails.com/rails/pages/HowToReceiveEmailsWithActionMailer.
I want to
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all
setup. A couple of issues though:
1. Is the Ruby 1.8.2 install by Apple still botched or has that been
fixed? I recall someone had fixed the rbconfig.rb to get it working.
Is this something I still have to do?
2. Does anyone know if Locomotive is using the uniersal binaries, or is
it targetting PPC yet? I couldn''t
2006 Jun 28
9
Rails Borked After 1.1.3 Install?
I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very strange
results.
When hitting a controller action, I am told that perfectly valid methods are
not there:
NoMethodError (undefined method `find'' for VideoTrack:Module)
Huh? Here''s the code in question:
VideoTrack.find(:all, :conditions => "featured_video = 1", :order =>
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
2008 Jan 31
11
ZenTest-3.9.0 incompatible with RSpec-1.1.2
Hey all,
Just a heads up that the ZenTest-3.9.0 release is not compatible with
RSpec-1.1.2. I thought I had a release ready to go, but differences
between a preview release of ZenTest that I received and the actual
release seem to have broken compatibility.
We''ll get this resolved soon, but in the mean time please hold off on
upgrading to ZenTest-3.9.0 if you''re using RSpec.
2006 Jan 20
2
The New Memcache ?
Hey All !
I ended up browsing to Eric Hodel''s blog the other night, and found his
entry about the new cache_model and memcache-client.
Now, it looks like it''s "officially" out in the open:
http://weblog.rubyonrails.com/articles/2006/01/20/caching-models-with-memcached
In my application, I''ve been staying away from caching my models, and
instead just doing
2011 Dec 23
1
/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load': /Users/jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)
I am using latest version for rspec-rails, ZenTest. I am getting
following error, when ever I try to run autotest.
Please help
-head at mhart6/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load'': /Users/
jayparteek/.autotest:7: invalid multibyte char (US-ASCII)
(SyntaxError)
2006 Feb 03
3
rubystandard library question
I have a problem getting find.rb and fileutils.rb to coexist in the
same script. When I require both I get the following:
/usr/lib/ruby/1.8/find.rb:36:in `dup'': can''t dup NilClass
(TypeError)
from /usr/lib/ruby/1.8/find.rb:36:in `find''
from /usr/lib/ruby/1.8/find.rb:36:in `find''
I googled for this problem and did not come across any place
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
Hello,
I have a few models -- book, cd, dvd -- for which I''d like to have an
abstract base superclass to hold some common stuff. That abstract class, I
was thinking, would inherit from ActiveRecord.
Didn''t work, though, and looking around, I found this:
<http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel>
2006 Apr 13
3
[OT] Is it safe to ''su'' to the right user ?
Hi !
I''m using daemontools[1] to manage a few processes on my Debian box.
Among other things, I use it to manage svnserve, because it uses less
memory than Apache.
My /service/svnserve/run looks like this:
#!/bin/sh
su svn -c "/usr/local/bin/svnserve --foreground --daemon --root /var/svn"
Is it safe for me to run like that ? If an attacker cracks svnserve,
what will they
2006 Feb 21
11
helper for models?
Is there such a thing?
I have some duplicate methods in my models, can I place them somewhere
and call them in to my models, thus keeping DRY?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 06
5
Functional tests and protected actions
Hello!
I have certain methods in my Application Controller, that I need to access.
Namely ApplicationController#logged_in_user
The problem is, that when I try to access it, I get:
NoMethodError: protected method `logged_in_user'' called for
#<AdminController>
Any ideas how I can circumvent that?
Or are functional tests really not suited for any kind of logins and session
work?
2006 Feb 01
7
Explanation of "alias_method"
Hi!
I''m trying to extend ActiveRecord''s find method (Rails 1.0, Ruby 1.8.2),
but I recognize a strange behaviour of the "alias_method" call.
I wrote a very simple script to explain my problem:
------------------------------------------------------
module ActiveRecordExtension
def self.included(base)
base.extend(ClassMethods)
base.class_eval do
2006 Feb 19
5
Memory use: WEBrick vs Apache
Hello,
>From purely a memory consumption standpoint, is it generally more
efficient to run a simple Rails app using WEBrick alongside a separate
apache installation or to run Rails under FCGI and use Apache to bridge
to the Web?
I have looked through lots of docs and old forum posts. Most seem to
center on just getting Apache+Rails running, or on speed.
I am really not concerned about my
2006 Jun 28
5
rails destroys rdoc...again
for many versions of ruby, and as many versions of rails, ive been unable to generate docs without deleting this file:
lib/rails_generator/generators/components/controller/templates/controller.rb
ruby just chews more and more memory until swap fils up and the system has to be reset..
m gems # rdoc --version
RDoc V1.0.1 - 20041108
ruby --version
ruby 1.8.5 (2006-06-22) [x86_64-linux]