Displaying 20 results from an estimated 54 matches for "jamisbuck".
2006 May 07
3
Needle + Rails - IoC
Hi,
I''m looking for past efforts to integrate Rails and Needle. I am
thinking of doing it myself but would be interested in seeing what
others have done before.
If there are examples of other IoC frameworks being used with Ruby I''d
be interested in hearing about them too. I find IoC to be a helpful
concept in general and, having glanced at a few existing Rails app.s, I
2007 Oct 05
4
have_xml_tag
Hi
Was just using have_tag on an xml response and found the problem
outlined and resolved here
http://weblog.jamisbuck.org/2007/1/4/assert_xml_select
Just wondered if there is any support in rspec?
Cheers
Shane
Shane Mingins
ELC Technologies (TM)
PO Box 247
Santa Barbara, CA 93102
Phone: +64 4 568 6684
Mobile: +64 21 435 586
Email: smingins at elctech.com
AIM: ShaneMingins
Skype: shane.mingins
(866) 863-...
2006 Jun 16
4
Unit test and get request with a URL
I''m tyring to write a unit test that uses a get() method to simulate a
get request in my functional test. However, get wants an action, and I
have a URL. I''m trying to redirect to a URL the user tried to hit
before logging in. After they login I want to go back to the URL they
originally tried.
I can''t find the get() method code in the help or otherwise. I
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
...hannel>\n <title"
text around close: "brands/2154/feed.rss</link>\n <descrip"
The XML in the view is actually well formed, the problem is that the
HTML::Document class used is not instantiated in XML mode when an XML
response body is present.
See http://weblog.jamisbuck.org/2007/1/4/assert_xml_select for more info.
I''ve had a go at patching this and ''it works for me'', but I''ve not spent
much time getting to know the internals of either rspec or rspec_on_rails,
so it may well be the wrong solution.
Cheers
Ian
-------------- nex...
2007 Oct 03
3
manually invoking routing?
Hey folks. I have a rails controller which is filtering search results
for access control. The search results are typically URLs into the rest
of the rails app. I''m finding it would simplify the grotty code which is
accumulating if I could manually invoke the router. That is to say, if I
could send something a URI path string and get back the hash of
controller, action, and params that
2005 Dec 15
10
.rpdf ?
I haven''t delved into the wonderful world of PDF::Writer yet, nor have I
run across a need.. but I just had an idea I wanted to throw out there
how hard would it be to create a .rpdf template plugin for rails?
could be neat ;]
2007 May 22
3
Comments wanted about spec''ing out a couple controller methods
(oops, accidentally sent this to the rspec-devel list, sorry about that)
Could someone help me spec out these Rails controller methods? I
don''t know where to get started, especially with the transaction
stuff. Or, if anyone else could suggest ways I could improve the
code, that would be great as well.
Puzzle has_one Media. Both are AR model objects.
class PuzzlesController <
2007 Mar 27
6
how does rails do this "find_by_?"
Hello there,
I''m wondering how do they create functions on the fly?
find_by_any_column_name ??
I want to do something similar with my models, but I don''t really know
how to do it?
user_current_nickname
user_current_id
user_current_role
etc.?
Regards,
Jamal
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2008 May 26
7
Mocking Models in Controller Specs...
I find myself doing this kind of thing a lot in Controller Specs:
@vacancy = mock_model(Vacancy)
@vacancy.stub!(:reference)
@vacancy.stub!(:title)
@vacancy.stub!(:created_at)
@vacancy.stub!(:updated_at)
@vacancy.stub!(:body)
@vacancy.stub!(:contract)
@vacancy.stub!(:location)
@vacancy.stub!(:salary)
@vacancy.stub!(:benefits)
2006 Feb 17
7
FCGI hanging w/ lighttpd and RoR 1.0 (need to kill -9)
Hi, everyone,
I''m currently running a Rails 1.0 project using lighttpd-1.4.9 behind
Apache 2 on RHEL 3. My fcgi process (I''m only using one right now)
always hangs after some time, which is something I haven''t experienced
before (e.g., I''ve run this same app. on a TextDrive account and it
works fine there).
So ... any ideas on what could be causing this?
2006 Mar 06
46
Capistrano 1.1
Capistrano is a utility for executing tasks in parallel across
multiple remote hosts. It was formerly known as SwitchTower.
Installation:
gem install capistrano
Manual:
http://manuals.rubyonrails.org/read/book/17
Version 1.1 introduces a few changes:
* Renamed! Due to the trademark infringement debacle of last week, we
had to change the name. Moving forward it will be known as
2006 Jul 10
2
cross controller functional tests?
Hi,
I have an online store and I would like to simulate a complete
shopping trip which involves several controllers? How can I write a
test that calls actions from different controllers in a particular
sequence? Something like the following which involves department,
product, cart_item, and cart controllers.
get department 5
check it has a link to product 4
get product 4
post cartitem/create
get
2006 Jun 28
0
Good Howto for web service/API with Rails 1.1?
Hi,
does anyone know a good howto for web services with rails 1.1? I
wanted to do it with the new REST web-service support as in
http://72.14.221.104/search?q=cache:AEshEfiLu2wJ:www.jamis.jamisbuck.org/articles/2006/03/27/web-services-rails-style+rails+api&hl=de&gl=de&ct=clnk&cd=57
but I don''t find a good tutorial :(
Thanks,
Beate
2006 Apr 10
0
open_session for functional tests; should it be moved or used in this way?
...that open_session could be used to help
write single-controller tests as well as the integration ones. Used as
described here[1]; it''s an extremely useful idiom.
Any thoughts? Should it be moved, or generally made available, or am I
missing the point here?
Regards
Chris
[1]
http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-1-1
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><&...
2006 Apr 27
0
Intergration testing with ordered fixtures
Hi all.
I have a question on accessing fixtures by name.
I''m doing integration testing very similar to what is described in
Jamis''s excellent writeup at
http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-1-1.
The problem is that I am using ordered yml fixtures so that rake loads
each element in the correct sequence. I need to do this because my
''has_many'' fixtures (ex. templates) need to know the right user_id to
attach to.
#...
2006 Mar 07
2
Can I set up multiple deploy targets with Capistrano?
I have two servers up, one will be used for production, one for
testing stuff. I''d like to set things up so I can upgrade each one
independently. So I could type
$ rake deploy
That will update the test server. I do that, test it for a few
minutes/hours/days whatever, then I can put it onto the main server:
$ rake deploy_production
Is this possible? If so, how can I do it?
Pat
2006 Feb 24
2
Double Render Error
Is there a way to suppress the Double Render Error:
"ActionController::DoubleRenderError.
Render and/or redirect were called multiple times in this action. Please
note that you may only call render OR redirect, and only once per
action."
Ideally, I would like the last redirect/render called to be the one that
is actually used when the page is sent to the browser.
--
Posted via
2005 Dec 27
1
Debugging Migrations
I''m having a heck of a time trying to debug issues in my migrations.
First, is there a good way to do this? Second, is there a way to get any
output to test it?
_______________________
Brad Eck
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2007 Apr 11
0
Fwd: [ mocha-Feature Requests-5856 ] Stubbing of private methods should be allowed
.... Stubbing private methods is not in general a good
idea, because it couples your test to the internal implementation of the
class under test. Have you considered moving the method into another class
e.g. an appropriate model class. See Jamis Buck''s blog posts like this one -
http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7480&aid=5856&group_id=1917
--
James.
http://blog.floehopper.org
2008 Dec 22
1
How do I use GDB to debug Litespeed Server?
How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven''t a
clue on how to proceed. I haven''t used GDB before.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to