Displaying 8 results from an estimated 8 matches for "methodmissing".
Did you mean:
method_missing
2006 Nov 23
2
Some tips for testing respond_to block and making controller tests work with simply_helpful
Hi,
Here''s two blog posts for those that need to test respond_to blocks
and/or are currently using simply_helpful extensively.
http://blog.methodmissing.com/2006/11/22/testing-different-content-
types-with-rspec
http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with-
rspec-controller-tests
- Lourens
2006 Dec 05
7
Dynamic # of Attributes for a Model (key/val table) Get/Set?
I''m working on a simple product catalog. Products have user defined
attributes, such as: color, size, weight. More attributes can be added
at any time. Since these attributes are not known ahead of time, they
cannot be created as columns.
My table structure (simplified):
products
--------
id
name
attrs
--------
id
name
product_attrs
--------
id
attr_id
value
And some sample code:
##
2007 Apr 20
1
simply_helpful and edge
Does anyone have view specs running on edge with simply_helpful?
I tried
http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with-rspec-controller-tests/but
it seems that was written for pre-9 versions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070420/0bc8d366/attachment.html
2006 Oct 28
5
Seperate admin and public views using one controller REST CRUD
Hello,
I want to seperate my admin and public views but only use one
controller. How to seperate layouts ist clear but how can I tell the
controller to render the *.rhtml files in views/admin/ when logged in or
render the *.rhtml files in views/public/ (for example).
Thanks for any help!
PS: using REST and CRUD in edge rails
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Nov 24
13
rSpec on Rails 1.2?
I just updated my Rails install to the most current Edge and my
controller specs fail:
1)
TypeError in ''The User Controller should be a user controller''
can''t convert nil into String
Each spec fails the same way.
<context string> <spec string>
can''t convert nil into String
Any ideas what''s up with this?
Thanks,
s.ross
2009 Mar 05
3
Connection Pooling on Rails 2.2.2 (Windows Vista)
Hi,
I''m trying to setup rails 2.2.2 pool connections to MySQL by
specifying the pool setting with 5 in database.yml but no hope.. It
doesn''t work.
My rails is running on webrick in the production mode and the webrick
is launched by RadRails.
Even though I send multiple requests to my app on rails at the same
time, it seemed only one connection is shared ( pooled ).
I also
2008 Oct 28
7
aasm callback order?
Hello!
Sometime ago I ran across a webpage where someone had identified the
full callback sequence for an object lifecycle including AASM with
it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t
find it and searches don''t seem to help.
Does anyone have a reference to a page that shows the callback
sequence with Acts As State Machine (the gem)?
I think
2006 Dec 20
16
Edge RSpec on Rails...what did I forget?
Started a new Rails project, and installed RSpec and the Rails plugin
vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332
vendor/plugins/rspec_on_rails
(svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails)
- 1332
Generated the rspec file, created a model...the spec runs fine if I do
ruby spec/models/foo_spec.rb. Running rake though gives